/[lwip]/lwip/src/core/netif.c
ViewVC logotype

Diff of /lwip/src/core/netif.c

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

revision 1.28.2.3 by jani, Tue Nov 4 11:47:52 2003 UTC revision 1.28.2.4 by likewise, Fri Nov 14 09:42:51 2003 UTC
# Line 168  netif_find(char *name) Line 168  netif_find(char *name)
168    LWIP_DEBUGF(NETIF_DEBUG, ("netif_find: didn't find %c%c\n", name[0], name[1]));    LWIP_DEBUGF(NETIF_DEBUG, ("netif_find: didn't find %c%c\n", name[0], name[1]));
169    return NULL;    return NULL;
170  }  }
171  /*-----------------------------------------------------------------------------------*/  
172  void  void
173  netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr)  netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr)
174  {  {
# Line 214  netif_set_ipaddr(struct netif *netif, st Line 214  netif_set_ipaddr(struct netif *netif, st
214      (unsigned int)(ntohl(netif->ip_addr.addr) >> 8 & 0xff),      (unsigned int)(ntohl(netif->ip_addr.addr) >> 8 & 0xff),
215      (unsigned int)(ntohl(netif->ip_addr.addr) & 0xff)));      (unsigned int)(ntohl(netif->ip_addr.addr) & 0xff)));
216  }  }
217  /*-----------------------------------------------------------------------------------*/  
218  void  void
219  netif_set_gw(struct netif *netif, struct ip_addr *gw)  netif_set_gw(struct netif *netif, struct ip_addr *gw)
220  {  {
# Line 226  netif_set_gw(struct netif *netif, struct Line 226  netif_set_gw(struct netif *netif, struct
226             (unsigned int)(ntohl(netif->gw.addr) >> 8 & 0xff),             (unsigned int)(ntohl(netif->gw.addr) >> 8 & 0xff),
227             (unsigned int)(ntohl(netif->gw.addr) & 0xff)));             (unsigned int)(ntohl(netif->gw.addr) & 0xff)));
228  }  }
229  /*-----------------------------------------------------------------------------------*/  
230  void  void
231  netif_set_netmask(struct netif *netif, struct ip_addr *netmask)  netif_set_netmask(struct netif *netif, struct ip_addr *netmask)
232  {  {
# Line 238  netif_set_netmask(struct netif *netif, s Line 238  netif_set_netmask(struct netif *netif, s
238             (unsigned int)(ntohl(netif->netmask.addr) >> 8 & 0xff),             (unsigned int)(ntohl(netif->netmask.addr) >> 8 & 0xff),
239             (unsigned int)(ntohl(netif->netmask.addr) & 0xff)));             (unsigned int)(ntohl(netif->netmask.addr) & 0xff)));
240  }  }
241  /*-----------------------------------------------------------------------------------*/  
242  void  void
243  netif_set_default(struct netif *netif)  netif_set_default(struct netif *netif)
244  {  {
# Line 246  netif_set_default(struct netif *netif) Line 246  netif_set_default(struct netif *netif)
246    LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",    LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",
247             netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));             netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));
248  }  }
249  /*-----------------------------------------------------------------------------------*/  
250  void  void
251  netif_init(void)  netif_init(void)
252  {  {
253    netif_list = netif_default = NULL;    netif_list = netif_default = NULL;
254  }  }
255  /*-----------------------------------------------------------------------------------*/  

Legend:
Removed from v.1.28.2.3  
changed lines
  Added in v.1.28.2.4

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