diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-07-31 17:54:32 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-31 22:04:18 -0700 |
commit | 7304fe4681634a8e0511a5922c972aa132ffb43d (patch) | |
tree | 97d39043b738e7cd135efcd242dc2430919da2da /samples/hidraw | |
parent | 299ee123e19889d511092347f5fc14db0f10e3a6 (diff) |
net: fix the counter ICMP_MIB_INERRORS/ICMP6_MIB_INERRORS
When dealing with ICMPv[46] Error Message, function icmp_socket_deliver()
and icmpv6_notify() do some valid checks on packet's length, but then some
protocols check packet's length redaudantly. So remove those duplicated
statements, and increase counter ICMP_MIB_INERRORS/ICMP6_MIB_INERRORS in
function icmp_socket_deliver() and icmpv6_notify() respectively.
In addition, add missed counter in udp6/udplite6 when socket is NULL.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/hidraw')
0 files changed, 0 insertions, 0 deletions