85 |
|
|
86 |
struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
87 |
struct ip_addr *gw, |
struct ip_addr *gw, |
88 |
|
void *state, |
89 |
void (* init)(struct netif *netif), |
void (* init)(struct netif *netif), |
90 |
err_t (* input)(struct pbuf *p, struct netif *netif)); |
err_t (* input)(struct pbuf *p, struct netif *netif)); |
91 |
|
|
92 |
|
void netif_remove(struct netif * netif); |
93 |
|
|
94 |
/* Returns a network interface given its name. The name is of the form |
/* Returns a network interface given its name. The name is of the form |
95 |
"et0", where the first two letters are the "name" field in the |
"et0", where the first two letters are the "name" field in the |
96 |
netif structure, and the digit is in the num field in the same |
netif structure, and the digit is in the num field in the same |