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

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

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

revision 1.2 by likewise, Mon Nov 11 14:37:30 2002 UTC revision 1.3 by jani, Wed Dec 18 12:49:02 2002 UTC
# Line 108  low_level_output(struct ethernetif *ethe Line 108  low_level_output(struct ethernetif *ethe
108    signal that packet should be sent();    signal that packet should be sent();
109        
110  #ifdef LINK_STATS  #ifdef LINK_STATS
111    stats.link.xmit++;    lwip_stats.link.xmit++;
112  #endif /* LINK_STATS */        #endif /* LINK_STATS */      
113    
114    return ERR_OK;    return ERR_OK;
# Line 146  low_level_input(struct ethernetif *ether Line 146  low_level_input(struct ethernetif *ether
146      }      }
147      acknowledge that packet has been read();      acknowledge that packet has been read();
148  #ifdef LINK_STATS  #ifdef LINK_STATS
149      stats.link.recv++;      lwip_stats.link.recv++;
150  #endif /* LINK_STATS */        #endif /* LINK_STATS */      
151    } else {    } else {
152      drop packet();      drop packet();
153  #ifdef LINK_STATS  #ifdef LINK_STATS
154      stats.link.memerr++;      lwip_stats.link.memerr++;
155      stats.link.drop++;      lwip_stats.link.drop++;
156  #endif /* LINK_STATS */        #endif /* LINK_STATS */      
157    }    }
158    
# Line 189  ethernetif_output(struct netif *netif, s Line 189  ethernetif_output(struct netif *netif, s
189      q = pbuf_alloc(PBUF_LINK, 14, PBUF_RAM);      q = pbuf_alloc(PBUF_LINK, 14, PBUF_RAM);
190      if(q == NULL) {      if(q == NULL) {
191  #ifdef LINK_STATS  #ifdef LINK_STATS
192        stats.link.drop++;        lwip_stats.link.drop++;
193        stats.link.memerr++;        lwip_stats.link.memerr++;
194  #endif /* LINK_STATS */        #endif /* LINK_STATS */      
195        return ERR_MEM;        return ERR_MEM;
196      }      }
# Line 240  ethernetif_output(struct netif *netif, s Line 240  ethernetif_output(struct netif *netif, s
240        return err;        return err;
241      }      }
242  #ifdef LINK_STATS  #ifdef LINK_STATS
243      stats.link.drop++;      lwip_stats.link.drop++;
244      stats.link.memerr++;      lwip_stats.link.memerr++;
245  #endif /* LINK_STATS */            #endif /* LINK_STATS */          
246      return ERR_MEM;      return ERR_MEM;
247    }    }
# Line 283  ethernetif_input(struct netif *netif) Line 283  ethernetif_input(struct netif *netif)
283    if(p != NULL) {    if(p != NULL) {
284    
285  #ifdef LINK_STATS  #ifdef LINK_STATS
286      stats.link.recv++;      lwip_stats.link.recv++;
287  #endif /* LINK_STATS */  #endif /* LINK_STATS */
288    
289      ethhdr = p->payload;      ethhdr = p->payload;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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