[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE : RE : [lwip-users] Device name
From: |
Frédéric BERNON |
Subject: |
RE : RE : [lwip-users] Device name |
Date: |
Thu, 18 Oct 2007 11:37:48 +0200 |
http://fr.wikipedia.org/wiki/Netbios (for people who speak french ;) )
http://en.wikipedia.org/wiki/NetBIOS
I join you a ZIP file where you can find:
- some Microsoft code with some types and defines, and the function
- a wireshark capture file to got a sample
And you can look in http://www.mycplus.com/out.asp?CID=1&SCID=187 the
FormatNetbiosName function (you need the inversed one, but it can help you).
====================================
Frédéric BERNON
HYMATOM SA
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
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Nicolas Pinault
Envoyé : jeudi 18 octobre 2007 11:14
À : Mailing list for lwIP users
Objet : Re: RE : [lwip-users] Device name
> Hello
>
> 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
> marvel:
>
> - 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
> dot).
> - 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
> nblookup).
>
> Cheers
>
> S. Ali Tokmen
> http://ali.tokmen.com
>
>
Thanks for your advices.
Nicolas
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
NETBIOS.zip
Description: NETBIOS.zip