Skip to content
Commit 027ac58e authored by Ben Cartwright-Cox's avatar Ben Cartwright-Cox Committed by David S. Miller
Browse files

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: default avatarBen Cartwright-Cox <ben@benjojo.co.uk>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c300366b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment