I'm looking for a lightweight version of nmblookup for an embedded device that needs to connect to windows boxes who have had their IP addresses assigned by DHCP. I want a simple application that given the name of a windows box on the network, it will give me the IP address. From analysing the exchange with ethereal, it seems like a very simple request/response exchange, and I really don't want a full version of nmblookup (or libnss_wins) just for that. Is there a lightweight application that would meet my needs or would I have to look at writing one ? If I were to write a small application to do it, is the exchange as simple as it appears to be in ethereal ? (Send a request to the broadcast address, take the IP address of the responding packet) Finally, could anybody point me in the direction of some documentation regarding the name encoding within the request packet ? Thanks, Tony Wright.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anthony Wright wrote:> If I were to write a small application to do it, is the > exchange as simple as it appears to be in ethereal ? > (Send a request to the broadcast address, take the IP > address of the responding packet)You need to deal with point-to-point queries to a WINS server possibly.> Finally, could anybody point me in the direction of > some documentation regarding the name encoding > within the request packet ?Read RFC 1001/1002 and http://ubiqx.org/cifs/ cheers, jerry - -- ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHDiCnIR7qMdg1EfYRAsH9AKCu1h5SVEwG5txBMN+7GiCyz5SrjwCgvem/ 7/mgvY9y2sedWB8f2spOQbo=ZFIr -----END PGP SIGNATURE-----