/[lwip]/lwip/src/include/lwip/netif.h
ViewVC logotype

Diff of /lwip/src/include/lwip/netif.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by likewise, Wed Jan 8 16:06:02 2003 UTC revision 1.7 by likewise, Tue Feb 4 18:49:46 2003 UTC
# Line 57  struct netif { Line 57  struct netif {
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    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26