Perhaps a feature that would be nice here is to map the DHCP host name to the netbios name. I mentioned once that a get and set_host_name on a netif would be good (I had to implement it myself since we use it for configuring lwIP-based devices). Then the netbios name could be gotten from use get_host_name if so configured.
I'm going in the same direction as Simon St-Pierre - we have lwIP-based devices going on a corporate lan and we cannot count on using a static IP address or we might not even know what the corporate subnet is. We're looking at accessing lwIP devices by name (somehow). I just received the book "Zero Configuration Networking" by Cheshire & Steinberg. From what I've read, more and more devices support this protocol/feature, as do XP and later PC's and Apples (ZeroConf is the basis for Apple's Bonjour). It looks somewhat like AutoIP but does more. When I understand it more and if it's appropriate, I was thinking of suggesting a lwIP task to either add ZeroConf to lwIP, or add options to the AutoIP module to support it. Bill From: lwip-users-bounces+bauerbach=arrayonline....@nongnu.org [mailto:lwip-users-bounces+bauerbach=arrayonline....@nongnu.org] On Behalf Of goldsi...@gmx.de Sent: Thursday, February 04, 2010 11:20 AM To: lwip-users@nongnu.org Subject: Re: [lwip-users] DHCP + LWIP_NETIF_HOSTNAME =1 for IP retrieving You seem to be needing a netbios name "server" for your device. Have a look at apps/netbios/netbios.c in the contrib module in CVS (or the download area), this should be exactly what you need. To set the name, you have to define NETBIOS_LWIP_NAME to something (either a constant string or a global variable holding the name). Simon Simon St-Pierre wrote: Hello, Using DHCP and LWIP_NETIF_HOSTNAME =1, I am able to see the name of my device in my router. (See attached snapshots) This is great but not of any use if I do not have access to the router of the company where my product will be installed. I would like to be able to retrieve the IP address of my lwIP device from a computer on the same LAN network without the need of using any software, i.e. using a simple windows command line. I don't care if it is one of those: - ping myLWIPdevice - nbtstat -c or any other command. Note: nslookup myLWIPdevice command would NOT be really useful since not all companies have a DNS server on the network. I read previous [lwip-user] threads on the subject but nothing answers clearly how to do it. Can anyone guide my how to proceed to realize this; at least give me some guideline of what to implement on my device. Thank you all, Simon _______________________________________________ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users