57 |
when it wants to pass a packet to the TCP/IP stack. */ |
when it wants to pass a packet to the TCP/IP stack. */ |
58 |
err_t (* input)(struct pbuf *p, struct netif *inp); |
err_t (* input)(struct pbuf *p, struct netif *inp); |
59 |
|
|
60 |
/* The following two fields should be filled in by the |
/** The following two fields should be filled in by the |
61 |
initialization function for the device driver. */ |
initialization function for the device driver. */ |
|
|
|
62 |
char name[2]; |
char name[2]; |
63 |
/* This function is called by the IP module when it wants |
/** This function is called by the IP module when it wants |
64 |
to send a packet on the interface. This function typically |
to send a packet on the interface. This function typically |
65 |
first resolves the hardware address, then sends the packet. */ |
first resolves the hardware address, then sends the packet. */ |
66 |
err_t (* output)(struct netif *netif, struct pbuf *p, |
err_t (* output)(struct netif *netif, struct pbuf *p, |
67 |
struct ip_addr *ipaddr); |
struct ip_addr *ipaddr); |
68 |
/* This function is called by the ARP module when it wants |
/** This function is called by the ARP module when it wants |
69 |
to send a packet on the interface. This function outputs |
to send a packet on the interface. This function outputs |
70 |
the pbuf on the link medium. */ |
the pbuf on the link medium. */ |
71 |
err_t (* linkoutput)(struct netif *netif, struct pbuf *p); |
err_t (* linkoutput)(struct netif *netif, struct pbuf *p); |
72 |
|
|
73 |
/* This field can be set by the device driver and could point |
/** This field can be set by the device driver and could point |
74 |
to state information for the device. */ |
to state information for the device. */ |
75 |
void *state; |
void *state; |
76 |
}; |
}; |
77 |
|
|