diff options
author | Ben Cartwright-Cox <[email protected]> | 2015-11-14 15:13:58 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-11-16 15:08:48 -0500 |
commit | 027ac58e3c757277dd6cb8975d1b69c27853aa76 (patch) | |
tree | 31841f2576a30bcdaa9619d6abd5189bd6f3e412 /tools/perf/util/trace-event-scripting.c | |
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 <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions