]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68da2600d00e7ed4670ae93cbdd625042cc32549
tree025e4114d551f2aabec1be69be27471182ceb099
parent404af2558bb0bb6a44e52fd1acd351aa870177f9
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