]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: retain parsed IPv6 header fields in flow on error skipping extension...
authorSimon Horman <simon.horman@netronome.com>
Sat, 29 Aug 2015 00:02:21 +0000 (09:02 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2015 20:39:59 +0000 (13:39 -0700)
commite31f5cd97b9187e60d383b90fbd3d05479219ea1
tree2c0719458035858da1c1779d5970b34b868c51ac
parent5108d42a00b5c8800202ea945e35498ef173cdd5
openvswitch: retain parsed IPv6 header fields in flow on error skipping extension headers

When an error occurs skipping IPv6 extension headers retain the already
parsed IP protocol and IPv6 addresses in the flow. Also assume that the
packet is not a fragment in the absence of information to the contrary;
that is always use the frag_off value set by ipv6_skip_exthdr().

This allows matching on the IP protocol and IPv6 addresses of packets
with malformed extension headers.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c