And .. You need to have one more UDP_PCB available for this "NetBIOS connection". Add one if more you had defined only what you needed before (or make it 1 if you had none defined before).
Bill From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Thursday, February 04, 2010 3:29 PM To: [email protected] Subject: Re: [lwip-users] DHCP + LWIP_NETIF_HOSTNAME =1 for IP retrieving Simon St-Pierre wrote: To all newbies like me, this is what I have done: - Download http://nongnu.askapache.com/lwip/contrib-1.3.0.zip - Add the netbios.c and netbios.h - In netbios.c define NETBIOS_LWIP_NAME to the name you want to ping. - In your code, after prvlwIPInit(); and the statup of dhcp, Call netbios_init(); Actually, "prvlwIPInit()" is not an lwIP function but rather a function of your port. Also, if using threading, don't call netbios_init from an application or the initialization thread but make sure you call it from the callback function passed to tcpip_init() or using tcpip_callback() or you will riks threading problems. Simon
_______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
