/[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.15 by likewise, Tue Apr 15 12:44:15 2003 UTC revision 1.16 by likewise, Mon Jun 9 21:14:47 2003 UTC
# Line 81  struct netif { Line 81  struct netif {
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. */
# Line 116  extern struct netif *netif_default; Line 116  extern struct netif *netif_default;
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

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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