lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp


From: markus . lwip
Subject: Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp
Date: Fri, 17 Mar 2017 08:08:04 +0100

Hi Dirk
 
Thank you, now it works.
 
Regards
Markus
 
Gesendet: Mittwoch, 15. März 2017 um 08:38 Uhr
Von: "Dirk Ziegelmeier" <address@hidden>
An: "Mailing list for lwIP users" <address@hidden>
Betreff: Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp
no, you just need to enable the interface during system startup by calling netif_set_up().

NO_SYS example:
http://www.nongnu.org/lwip/2_0_x/group__lwip__nosys.html
 

Ciao
Dirk

--
Dirk Ziegelmeier * address@hidden * http://www.ziegelmeier.net
 
On Wed, Mar 15, 2017 at 8:35 AM, <address@hidden> wrote:
Hi Dirk
 
Thank you for your answer.
 
 
I don't really understand that point. Do I have to change my InitEthernetAdapter function like that?
 

// Start with dhcp

if (_useDhcp)

{

  if (dhcp_start(&_netif) == ERR_OK)

  {

    netif_set_up(&_netif);

  }

}

Thanks

Markus

 

Gesendet: Dienstag, 14. März 2017 um 15:45 Uhr
Von: "Dirk Ziegelmeier" <address@hidden>
An: "Mailing list for lwIP users" <address@hidden>
Betreff: Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp
Maybe this is missing:

http://www.nongnu.org/lwip/2_0_x/upgrading.html
 
 * Changed netif "up" flag handling to be an administrative flag (as opposed to the previous meaning of    "ip4-address-valid", a netif will now not be used for transmission if not up) -> even a DHCP netif    has to be set "up" before starting the DHCP client
 
_______________________________________________ lwip-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/lwip-users
 
 

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/lwip-users
 
 

reply via email to

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