]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Fix SNMPv2 "ipFragFails" counter error
authorWei Dong <weid@nanjing-fnst.com>
Thu, 31 Aug 2006 22:24:48 +0000 (15:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Aug 2006 22:24:48 +0000 (15:24 -0700)
commit473be0fcfe03fc30b76d6618dee79afbaf6657a9
treeefc844d3b50e37a0db4cc650c7b005911945e786
parentb3267f82ac2ed22626cea7f6742aef715d54131c
[IPV4]: Fix SNMPv2 "ipFragFails" counter error

  When I tested Linux kernel 2.6.17.7 about statistics
"ipFragFails",found that this counter couldn't increase correctly. The
criteria is RFC2011:
RFC2011
  ipFragFails OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            "The number of IP datagrams that have been discarded because
            they needed to be fragmented at this entity but could not
            be, e.g., because their Don't Fragment flag was set."
    ::= { ip 18 }

When I send big IP packet to a router with DF bit set to 1 which need to
be fragmented, and router just sends an ICMP error message
ICMP_FRAG_NEEDED but no increments for this counter(in the function
ip_fragment).

Signed-off-by: Wei Dong <weid@nanjing-fnst.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c