Skip to content

Commit

Permalink
[IPV4]: Increment ipInHdrErrors when TTL expires.
Browse files Browse the repository at this point in the history
Signed-off-by: Weidong <weid@nanjing-fnst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Weidong authored and David S. Miller committed Jun 12, 2006
1 parent 79320d7 commit 42d1d52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/ip_forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ int ip_forward(struct sk_buff *skb)

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);
Expand Down

0 comments on commit 42d1d52

Please sign in to comment.