Don't use an AutoIP-configured address on a new network until the address has been configured.

When connecting to a new network with an AutoIP address, take the
interface down until the old address has passed the
AUTOIP_STATE_PROBING state.
This commit is contained in:
stoklund
2009-08-24 13:11:35 +00:00
parent e7d5739ce7
commit d83fc6893b
3 changed files with 76 additions and 18 deletions

View File

@@ -100,6 +100,9 @@ void autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr);
/** Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds */
void autoip_tmr(void);
/** Handle a possible change in the network configuration */
void autoip_network_changed(struct netif *netif);
#endif /* LWIP_AUTOIP */
#endif /* __LWIP_AUTOIP_H__ */