81 |
to send a packet on the interface. This function typically |
to send a packet on the interface. This function typically |
82 |
first resolves the hardware address, then sends the packet. */ |
first resolves the hardware address, then sends the packet. */ |
83 |
err_t (* output)(struct netif *netif, struct pbuf *p, |
err_t (* output)(struct netif *netif, struct pbuf *p, |
84 |
struct ip_addr *ipaddr); |
struct ip_addr *ipaddr); |
85 |
/** This function is called by the ARP module when it wants |
/** This function is called by the ARP module when it wants |
86 |
to send a packet on the interface. This function outputs |
to send a packet on the interface. This function outputs |
87 |
the pbuf as-is on the link medium. */ |
the pbuf as-is on the link medium. */ |
116 |
void netif_init(void); |
void netif_init(void); |
117 |
|
|
118 |
struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask, |
119 |
struct ip_addr *gw, |
struct ip_addr *gw, |
120 |
void *state, |
void *state, |
121 |
err_t (* init)(struct netif *netif), |
err_t (* init)(struct netif *netif), |
122 |
err_t (* input)(struct pbuf *p, struct netif *netif)); |
err_t (* input)(struct pbuf *p, struct netif *netif)); |
123 |
|
|
124 |
void |
void |
125 |
netif_set_addr(struct netif *netif,struct ip_addr *ipaddr, struct ip_addr *netmask, |
netif_set_addr(struct netif *netif,struct ip_addr *ipaddr, struct ip_addr *netmask, |
126 |
struct ip_addr *gw); |
struct ip_addr *gw); |
127 |
void netif_remove(struct netif * netif); |
void netif_remove(struct netif * netif); |
128 |
|
|
129 |
/* 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 |