commit | 027ac58e3c757277dd6cb8975d1b69c27853aa76 | [log] [tgz] |
---|---|---|
author | Ben Cartwright-Cox <ben@benjojo.co.uk> | Sat Nov 14 15:13:58 2015 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 16 15:08:48 2015 -0500 |
tree | 31841f2576a30bcdaa9619d6abd5189bd6f3e412 | |
parent | c300366b6b978fcb84f8eeb6205e5980cc0c40c3 [diff] |
raw: increment correct SNMP counters for ICMP messages Sending ICMP packets with raw sockets ends up in the SNMP counters logging the type as the first byte of the IPv4 header rather than the ICMP header. This is fixed by adding the IP Header Length to the casting into a icmphdr struct. Signed-off-by: Ben Cartwright-Cox <ben@benjojo.co.uk> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>