added functions dhcp/autoip_supplied_address() to check for the source of address assignemnt (replacement for NETIF_FLAG_DHCP)

This commit is contained in:
sg
2015-04-24 21:23:15 +02:00
parent 737a6921c3
commit e20a071977
5 changed files with 45 additions and 0 deletions

View File

@@ -112,6 +112,9 @@ void autoip_tmr(void);
/** Handle a possible change in the network configuration */
void autoip_network_changed(struct netif *netif);
/** check if AutoIP supplied netif->ip_addr */
u8_t autoip_supplied_address(struct netif *netif);
#ifdef __cplusplus
}
#endif

View File

@@ -129,6 +129,9 @@ void dhcp_network_changed(struct netif *netif);
void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr);
#endif
/** check if DHCP supplied netif->ip_addr */
u8_t dhcp_supplied_address(struct netif *netif);
/** to be called every minute */
void dhcp_coarse_tmr(void);
/** to be called every half second */