]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: Fix fragment handling for header length computation
authorAlexander Duyck <aduyck@mirantis.com>
Wed, 24 Feb 2016 17:29:44 +0000 (09:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Feb 2016 18:58:04 +0000 (13:58 -0500)
commit8f0f4aba0a6b6a886a03cc862ec2b0ec952384f7
treec0d4dbf3cf5f6576fcc25199d922eb23ae193169
parent4d6fe93bdd2abe594e2f88bf691751e77c6c28e1
flow_dissector: Fix fragment handling for header length computation

It turns out that for IPv4 we were reporting the ip_proto of the fragment,
and for IPv6 we were not.  This patch updates that behavior so that we
always report the IP protocol of the fragment.  In addition it takes the
steps of updating the payload offset code so that we will determine the
start of the payload not including the L4 header for any fragment after the
first.

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