mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Changed some comments into JavaDoc format.
This commit is contained in:
parent
c91b024153
commit
70d54479a1
@ -57,22 +57,21 @@ struct netif {
|
|||||||
when it wants to pass a packet to the TCP/IP stack. */
|
when it wants to pass a packet to the TCP/IP stack. */
|
||||||
err_t (* input)(struct pbuf *p, struct netif *inp);
|
err_t (* input)(struct pbuf *p, struct netif *inp);
|
||||||
|
|
||||||
/* The following two fields should be filled in by the
|
/** The following two fields should be filled in by the
|
||||||
initialization function for the device driver. */
|
initialization function for the device driver. */
|
||||||
|
|
||||||
char name[2];
|
char name[2];
|
||||||
/* This function is called by the IP module when it wants
|
/** This function is called by the IP module when it wants
|
||||||
to send a packet on the interface. This function typically
|
to send a packet on the interface. This function typically
|
||||||
first resolves the hardware address, then sends the packet. */
|
first resolves the hardware address, then sends the packet. */
|
||||||
err_t (* output)(struct netif *netif, struct pbuf *p,
|
err_t (* output)(struct netif *netif, struct pbuf *p,
|
||||||
struct ip_addr *ipaddr);
|
struct ip_addr *ipaddr);
|
||||||
/* This function is called by the ARP module when it wants
|
/** This function is called by the ARP module when it wants
|
||||||
to send a packet on the interface. This function outputs
|
to send a packet on the interface. This function outputs
|
||||||
the pbuf on the link medium. */
|
the pbuf on the link medium. */
|
||||||
err_t (* linkoutput)(struct netif *netif, struct pbuf *p);
|
err_t (* linkoutput)(struct netif *netif, struct pbuf *p);
|
||||||
|
|
||||||
/* This field can be set by the device driver and could point
|
/** This field can be set by the device driver and could point
|
||||||
to state information for the device. */
|
to state information for the device. */
|
||||||
void *state;
|
void *state;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user