97 |
/* add this netif to the list */ |
/* add this netif to the list */ |
98 |
netif->next = netif_list; |
netif->next = netif_list; |
99 |
netif_list = netif; |
netif_list = netif; |
|
#if NETIF_DEBUG |
|
100 |
LWIP_DEBUGF(NETIF_DEBUG, ("netif: added interface %c%c IP addr ", |
LWIP_DEBUGF(NETIF_DEBUG, ("netif: added interface %c%c IP addr ", |
101 |
netif->name[0], netif->name[1])); |
netif->name[0], netif->name[1])); |
102 |
ip_addr_debug_print(NETIF_DEBUG, ipaddr); |
ip_addr_debug_print(NETIF_DEBUG, ipaddr); |
105 |
LWIP_DEBUGF(NETIF_DEBUG, (" gw ")); |
LWIP_DEBUGF(NETIF_DEBUG, (" gw ")); |
106 |
ip_addr_debug_print(NETIF_DEBUG, gw); |
ip_addr_debug_print(NETIF_DEBUG, gw); |
107 |
LWIP_DEBUGF(NETIF_DEBUG, ("\n")); |
LWIP_DEBUGF(NETIF_DEBUG, ("\n")); |
|
#endif /* NETIF_DEBUG */ |
|
108 |
return netif; |
return netif; |
109 |
} |
} |
110 |
|
|