lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] DHCP callback was removed - Correct way to obtain new a


From: Paul Webber
Subject: Re: [lwip-users] DHCP callback was removed - Correct way to obtain new address?
Date: Fri, 29 Aug 2014 17:51:47 +0000

Chris,

I am using the TCP RAW. After starting DHCP I wait for the IP by using: While(main_netif.dchp->state != DHCP_BOUND). After the state changes to DHCP_BOUND the ip is in the pcb (main_netif.ip_addr). You can periodically check to see if the ip changes. I also include in the while statement a timer in case there is a DHCP problem.

Paul

 

From: lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden On Behalf Of Chris Maier
Sent: Friday, August 29, 2014 10:33 AM
To: address@hidden
Subject: [lwip-users] DHCP callback was removed - Correct way to obtain new address?

 

Hi all,

 

I am just porting my application from version 1.3.2 to the latest 1.4.2. and I was wondering why my application does not get called back from the stack when the DHCP

 

As I found out the callback was removed. My application has to know the address for displaying purposes, so do I have to poll for a new address?

 

What is the proper way to obtain a new address?

 

Regards

 

Chris

 

----------------------------------------------------------------
DÜRR DENTAL AG
Höpfigheimer Strasse 17
74321 Bietigheim-Bissingen Deutschland / Germany
Tel. + 49 (0) 7142 / 705-0
Fax + 49 (0) 7142 / 705-500
http://www.duerrdental.com
Join us on Facebook www.facebook.com/DuerrDentalAG

Firmensitz / Registered Office: Höpfigheimer Str. 17, 74321 Bietigheim-Bissingen Handelsregister / Register of Commerce: Amtsgericht Stuttgart HRB 727006

Vorstand / Executive Board: Martin Dürrstein (Vorsitzender / CEO), Axel Schramm Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board: Joachim Loh


reply via email to

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