lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] DHCP + LWIP_NETIF_HOSTNAME =1 for IP retrieving


From: Bill Auerbach
Subject: RE: [lwip-users] DHCP + LWIP_NETIF_HOSTNAME =1 for IP retrieving
Date: Thu, 4 Feb 2010 16:35:57 -0500

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: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Thursday, February 04, 2010 3:29 PM
To: address@hidden
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


reply via email to

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