• Wei Dong's avatar
    [IPV6]: SNMPv2 "ipv6IfStatsInHdrErrors" counter error · 32c524d1
    Wei Dong authored
      When I tested Linux kernel 2.6.17.7 about statistics
    "ipv6IfStatsInHdrErrors", found that this counter couldn't increase
    correctly. The criteria is RFC2465:
      ipv6IfStatsInHdrErrors OBJECT-TYPE
          SYNTAX     Counter3
          MAX-ACCESS read-only
          STATUS     current
          DESCRIPTION
             "The number of input datagrams discarded due to
             errors in their IPv6 headers, including version
             number mismatch, other format errors, hop count
             exceeded, errors discovered in processing their
             IPv6 options, etc."
          ::= { ipv6IfStatsEntry 2 }
    
    When I send TTL=0 and TTL=1 a packet to a router which need to be
    forwarded, router just sends an ICMPv6 message to tell the sender that
    TIME_EXCEED and HOPLIMITS, but no increments for this counter(in the
    function ip6_forward).
    Signed-off-by: default avatarWei Dong <weid@nanjing-fnst.com>
    Acked-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    32c524d1
ip6_output.c 32.1 KB