/[lwip]/lwip/src/core/ipv4/ip.c
ViewVC logotype

Diff of /lwip/src/core/ipv4/ip.c

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

revision 1.6 by kieranm, Wed Dec 18 11:53:26 2002 UTC revision 1.7 by jani, Wed Dec 18 12:49:02 2002 UTC
# Line 208  ip_forward(struct pbuf *p, struct ip_hdr Line 208  ip_forward(struct pbuf *p, struct ip_hdr
208                      iphdr->dest.addr));                      iphdr->dest.addr));
209    
210  #ifdef IP_STATS  #ifdef IP_STATS
211    ++stats.ip.fw;    ++lwip_stats.ip.fw;
212    ++stats.ip.xmit;    ++lwip_stats.ip.xmit;
213  #endif /* IP_STATS */  #endif /* IP_STATS */
214  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
215      snmp_inc_ipforwdatagrams();      snmp_inc_ipforwdatagrams();
# Line 241  ip_input(struct pbuf *p, struct netif *i Line 241  ip_input(struct pbuf *p, struct netif *i
241        
242        
243  #ifdef IP_STATS  #ifdef IP_STATS
244    ++stats.ip.recv;    ++lwip_stats.ip.recv;
245  #endif /* IP_STATS */  #endif /* IP_STATS */
246  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
247      snmp_inc_ipinreceives();      snmp_inc_ipinreceives();
# Line 256  ip_input(struct pbuf *p, struct netif *i Line 256  ip_input(struct pbuf *p, struct netif *i
256  #endif /* IP_DEBUG */  #endif /* IP_DEBUG */
257      pbuf_free(p);      pbuf_free(p);
258  #ifdef IP_STATS  #ifdef IP_STATS
259      ++stats.ip.err;      ++lwip_stats.ip.err;
260      ++stats.ip.drop;      ++lwip_stats.ip.drop;
261  #endif /* IP_STATS */  #endif /* IP_STATS */
262  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
263      snmp_inc_ipunknownprotos();      snmp_inc_ipunknownprotos();
# Line 272  ip_input(struct pbuf *p, struct netif *i Line 272  ip_input(struct pbuf *p, struct netif *i
272    
273      pbuf_free(p);      pbuf_free(p);
274  #ifdef IP_STATS  #ifdef IP_STATS
275      ++stats.ip.lenerr;      ++lwip_stats.ip.lenerr;
276      ++stats.ip.drop;      ++lwip_stats.ip.drop;
277  #endif /* IP_STATS */  #endif /* IP_STATS */
278  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
279      snmp_inc_ipindiscards();      snmp_inc_ipindiscards();
# Line 290  ip_input(struct pbuf *p, struct netif *i Line 290  ip_input(struct pbuf *p, struct netif *i
290  #endif /* IP_DEBUG */  #endif /* IP_DEBUG */
291      pbuf_free(p);      pbuf_free(p);
292  #ifdef IP_STATS  #ifdef IP_STATS
293      ++stats.ip.chkerr;      ++lwip_stats.ip.chkerr;
294      ++stats.ip.drop;      ++lwip_stats.ip.drop;
295  #endif /* IP_STATS */  #endif /* IP_STATS */
296  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
297      snmp_inc_ipindiscards();      snmp_inc_ipindiscards();
# Line 370  ip_input(struct pbuf *p, struct netif *i Line 370  ip_input(struct pbuf *p, struct netif *i
370      DEBUGF(IP_DEBUG, ("IP packet dropped since it was fragmented (0x%x).\n",      DEBUGF(IP_DEBUG, ("IP packet dropped since it was fragmented (0x%x).\n",
371                        ntohs(IPH_OFFSET(iphdr))));                        ntohs(IPH_OFFSET(iphdr))));
372  #ifdef IP_STATS  #ifdef IP_STATS
373      ++stats.ip.opterr;      ++lwip_stats.ip.opterr;
374      ++stats.ip.drop;      ++lwip_stats.ip.drop;
375  #endif /* IP_STATS */  #endif /* IP_STATS */
376  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
377      snmp_inc_ipunknownprotos();      snmp_inc_ipunknownprotos();
# Line 386  ip_input(struct pbuf *p, struct netif *i Line 386  ip_input(struct pbuf *p, struct netif *i
386    
387      pbuf_free(p);          pbuf_free(p);    
388  #ifdef IP_STATS  #ifdef IP_STATS
389      ++stats.ip.opterr;      ++lwip_stats.ip.opterr;
390      ++stats.ip.drop;      ++lwip_stats.ip.drop;
391  #endif /* IP_STATS */  #endif /* IP_STATS */
392  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
393      snmp_inc_ipunknownprotos();      snmp_inc_ipunknownprotos();
# Line 439  ip_input(struct pbuf *p, struct netif *i Line 439  ip_input(struct pbuf *p, struct netif *i
439      DEBUGF(IP_DEBUG, ("Unsupported transportation protocol %d\n", IPH_PROTO(iphdr)));      DEBUGF(IP_DEBUG, ("Unsupported transportation protocol %d\n", IPH_PROTO(iphdr)));
440    
441  #ifdef IP_STATS  #ifdef IP_STATS
442      ++stats.ip.proterr;      ++lwip_stats.ip.proterr;
443      ++stats.ip.drop;      ++lwip_stats.ip.drop;
444  #endif /* IP_STATS */  #endif /* IP_STATS */
445  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
446      snmp_inc_ipunknownprotos();      snmp_inc_ipunknownprotos();
# Line 477  ip_output_if(struct pbuf *p, struct ip_a Line 477  ip_output_if(struct pbuf *p, struct ip_a
477        DEBUGF(IP_DEBUG, ("ip_output: not enough room for IP header in pbuf\n"));        DEBUGF(IP_DEBUG, ("ip_output: not enough room for IP header in pbuf\n"));
478                
479  #ifdef IP_STATS  #ifdef IP_STATS
480        ++stats.ip.err;        ++lwip_stats.ip.err;
481  #endif /* IP_STATS */  #endif /* IP_STATS */
482  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
483      snmp_inc_ipoutdiscards();      snmp_inc_ipoutdiscards();
# Line 517  ip_output_if(struct pbuf *p, struct ip_a Line 517  ip_output_if(struct pbuf *p, struct ip_a
517  #endif  #endif
518        
519  #ifdef IP_STATS  #ifdef IP_STATS
520    stats.ip.xmit++;    lwip_stats.ip.xmit++;
521  #endif /* IP_STATS */  #endif /* IP_STATS */
522    DEBUGF(IP_DEBUG, ("ip_output_if: %c%c ", netif->name[0], netif->name[1]));    DEBUGF(IP_DEBUG, ("ip_output_if: %c%c ", netif->name[0], netif->name[1]));
523  #if IP_DEBUG  #if IP_DEBUG
# Line 545  ip_output(struct pbuf *p, struct ip_addr Line 545  ip_output(struct pbuf *p, struct ip_addr
545      DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));      DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));
546    
547  #ifdef IP_STATS  #ifdef IP_STATS
548      ++stats.ip.rterr;      ++lwip_stats.ip.rterr;
549  #endif /* IP_STATS */  #endif /* IP_STATS */
550  #if LWIP_SNMP > 0  #if LWIP_SNMP > 0
551      snmp_inc_ipoutdiscards();      snmp_inc_ipoutdiscards();

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