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+pwebber=heat-timer@nongnu.org
[mailto:lwip-users-bounces+pwebber=heat-timer@nongnu.org] On Behalf Of
Chris Maier
Sent: Friday, August 29, 2014 10:33 AM
To: lwip-users@nongnu.org
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/DuerrDentalAGhttp://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
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users