flow_dissector: extract more ICMP information
authorMatteo Croce <mcroce@redhat.com>
Tue, 29 Oct 2019 13:50:52 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 00:21:35 +0000 (17:21 -0700)
commit5dec597e5cd0f4c3000d120508efa64157d5bd7a
tree025e4114d551f2aabec1be69be27471182ceb099
parent3b336d6f4ec690b0082bcffe55bac22f234a41ff
flow_dissector: extract more ICMP information

The ICMP flow dissector currently parses only the Type and Code fields.
Some ICMP packets (echo, timestamp) have a 16 bit Identifier field which
is used to correlate packets.
Add such field in flow_dissector_key_icmp and replace skb_flow_get_be16()
with a more complex function which populate this field.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_dissector.h
net/core/flow_dissector.c