[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : [lwip-users] Device name

From: S. Ali Tokmen
Subject: Re: RE : [lwip-users] Device name
Date: Thu, 18 Oct 2007 11:00:04 +0200


Just as a remark: you actually don't need to implement the *whole* NetBIOS 
stack, the only thing you want to do is to reply to naming messages that 
contain the name of your device.

We've already implemented that solution in our system, and it's working as a 

    - The source code (in C++ since we use Thread classes) is 380 lines long 
(including comments describing packets)
    - In Windows, when you use any program that calls gethostbyaddr (ping, 
IE, Firefox, Telnet, LabVIEW, ...) Windows will automagically send out a 
broadcast for that NetBIOS name and find your device, even if there's no DNS 
or DHCP server (note that distinguishing between DNS names and NetBIOS names 
is trivial: a NetBIOS name cannot contain a dot, a DNS name has to contain a 
    - In Linux/OS X, a manual call to "nblookup" is required (that'll return 
the IP address for that name). We've actually done a Java class that does 
that resolution automatically (if it contains a dot ask DNS, otherwise call 


S. Ali Tokmen

GSM (fr): +33 66 43 00 555 [Bouygues Telecom]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger, and Yahoo IM
contact details are on http://contact.ali.tokmen.com/

----- Original Message ----- 
From: "Frédéric BERNON" <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
Sent: Thursday, October 18, 2007 10:27 AM
Subject: RE : RE : [lwip-users] Device name

So, implement your own NETBIOS stack is your only solution (if you don't 
want to have to configure your "ping" hosts). But I'm not sure NETBIOS is 
supported on all platform (for name resolutions). It's sure for Windows 
ones, Linux use it for Samba, but I don't know if tools like ping do it.

"NETBIOS name service" is not very difficult to implement, but it will only 
work on a LAN (and a VPN if you use some "master explorers" on), but not on 
a WAN. Take a look to http://ubiqx.org/cifs/NetBIOS.html, it provide most of 

Frédéric BERNON
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
P Avant d'imprimer, penser à l'environnement 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]