netif的状态变化可以设置回调函数,
主要有三项变化,
1 netif up or down,address change,address state change(IPv6)
2 link up or down;
3 netif移除
这三项状态变化可以触发用户编写的回调函数
1 #if LWIP_NETIF_STATUS_CALLBACK 2 /** This function is called when the netif state is set to up or down 3 */ 4 netif_status_callback_fn status_callback; 5 #endif /* LWIP_NETIF_STATUS_CALLBACK */ 6 #if LWIP_NETIF_LINK_CALLBACK 7 /** This function is called when the netif link is set to up or down 8 */ 9 netif_status_callback_fn link_callback; 10 <