]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: Check for IP fragmentation even if not using IPv4 address
authorAlexander Duyck <aduyck@mirantis.com>
Wed, 24 Feb 2016 17:29:38 +0000 (09:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Feb 2016 18:58:04 +0000 (13:58 -0500)
commit7a869c38fefafc2dd25a602373706fcc27acea12
tree0ec1ec882dc6c60aa282a917f30c6aeda2ff8957
parentbeca558b15093535b58dbdb63bb84a7e97b47023
flow_dissector: Check for IP fragmentation even if not using IPv4 address

This patch corrects the logic for the IPv4 parsing so that it is consistent
with how we handle IPv6.  Specifically if we do not have the flow key
indicating we want the addresses we still may need to take a look at the IP
fragmentation bits and to see if we should stop after we have recognized
the L3 header.

Fixes: 7fdb337cf2e1 ("flow_dissector: Add control/reporting of fragmentation")
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c