Re: [PATCH v2 net] raw: increment correct SNMP counters for ICMP messages

From: David Miller
Date: Mon Nov 16 2015 - 15:09:09 EST


From: Ben Cartwright-Cox <Ben@xxxxxxxxxxxxx>
Date: Sat, 14 Nov 2015 15:13:58 +0000

> 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@xxxxxxxxxxxxx>
> Acked-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/