lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Reconnect cable to a DIFFERENT network


From: Simon Goldschmidt
Subject: Re: [lwip-users] Reconnect cable to a DIFFERENT network
Date: Tue, 5 Feb 2013 06:06:14 +0100

 "Ray Martin" wrote:

Could someone please outline and explain the approved LWIP and PHY sequence when reconnecting the cable to a different network or the same network?


As you can't tell whether you are connected to the same or to a new network, the procedure is always the same. Call netif_set_link_up() and netif_set_link_down() to inform lwIP of link status changes. When using DHCP, this will ensure correct behaviour (The DHCP client will try to reach the old DHCP server and request to continue using its current IP address, which will fail in a new network. In that case it just restarts and gets a new address).

Simon

reply via email to

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