39 |
struct netif *netif_list = NULL; |
struct netif *netif_list = NULL; |
40 |
struct netif *netif_default = NULL; |
struct netif *netif_default = NULL; |
41 |
|
|
42 |
/*-----------------------------------------------------------------------------------*/ |
/** |
43 |
|
* Add a network interface to the list of lwIP netifs. |
44 |
|
* |
45 |
|
* @param ipaddr IP address for the new netif |
46 |
|
* @param netmask network mask for the new netif |
47 |
|
* @param gw default gateway IP address for the new netif |
48 |
|
* @init callback function that initializes the interface |
49 |
|
* @input callback function that... |
50 |
|
* |
51 |
|
* @return netif, or NULL if failed. |
52 |
|
*/ |
53 |
struct netif * |
struct netif * |
54 |
netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
55 |
struct ip_addr *gw, |
struct ip_addr *gw, |