Skip to contentSkip to conversation

MIB "ipInHdrErrors" error

DISCUSSION Wei Dong 2 participants 2 messages Jun 12, 2006

Subsystems (3)
lore
Share & tools
lore

Wei Dong

author
#0 lore raw
Quoted 6 lines · Wei Dong
Quoted 3 lines

Also, when kernel receives an IP packet and need to forward, but TTL=1 or TTL=0, kernel just sends an ICMP packet to inform the sender TTL count exceeded, and doesn't increase this counter.

This part of your change seems correct, please just resubmit this part.

The following is the latest patch for MIB ipIHdrErrors.

net/ipv4/ip_forward.c +1 -0
diff -ruN old/net/ipv4/ip_forward.c new/net/ipv4/ip_forward.c
@@ -120,6 +120,7 @@
 
 too_many_hops:
         /* Tell the sender its packet died... */
+        IP_INC_STATS_BH(IPSTATS_MIB_INHDRERRORS);
         icmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0);
 drop:
 	kfree_skb(skb);
maintainer
#1 lore raw

From: Wei Dong <[email protected]>
Date: Mon, 12 Jun 2006 16:49:23 +0800

Quoted 8 lines · Wei Dong
Quoted 6 lines
Quoted 3 lines

Also, when kernel receives an IP packet and need to forward, but TTL=1 or TTL=0, kernel just sends an ICMP packet to inform the sender TTL count exceeded, and doesn't increase this counter.

This part of your change seems correct, please just resubmit this part.

The following is the latest patch for MIB ipIHdrErrors.

Patch applied, thanks a lot.