/[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.21 by jani, Tue Apr 15 14:58:35 2003 UTC revision 1.22 by likewise, Thu May 1 13:24:01 2003 UTC
# Line 153  netif_find(char *name) Line 153  netif_find(char *name)
153    struct netif *netif;    struct netif *netif;
154    u8_t num;    u8_t num;
155        
156    if(name == NULL) {    if (name == NULL) {
157      return NULL;      return NULL;
158    }    }
159    
160    num = name[2] - '0';    num = name[2] - '0';
161    
162    for(netif = netif_list; netif != NULL; netif = netif->next) {    for(netif = netif_list; netif != NULL; netif = netif->next) {
163      if(num == netif->num &&      if (num == netif->num &&
164         name[0] == netif->name[0] &&         name[0] == netif->name[0] &&
165         name[1] == netif->name[1]) {         name[1] == netif->name[1]) {
166        DEBUGF(NETIF_DEBUG, ("netif_find: found %c%c\n", name[0], name[1]));        DEBUGF(NETIF_DEBUG, ("netif_find: found %c%c\n", name[0], name[1]));

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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