]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/openvswitch/flow.c
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)
commitc30da497893718abc6cec4f1d34d35875200edee
tree2c0719458035858da1c1779d5970b34b868c51ac
parentf5004a14fac0a71656340544c48a14c80a3afddf
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