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(); |
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(); |
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(); |
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(); |
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(); |
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(); |
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(); |
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(); |
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(); |
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 |
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(); |