2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

flow: Fix IPv6 header parser with partial offloading.

Set nw_proto before it is used in parse_ipv6_ext_hdrs__().

Signed-off-by: Zhike Wang <wangzk320@163.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Zhike Wang
2019-11-08 17:02:44 +08:00
committed by Ben Pfaff
parent 9248e103e4
commit d0dd4908d7

View File

@@ -1136,11 +1136,11 @@ parse_tcp_flags(struct dp_packet *packet)
dp_packet_set_l2_pad_size(packet, size - plen);
size = plen;
const struct ovs_16aligned_ip6_frag *frag_hdr;
nw_proto = nh->ip6_nxt;
if (!parse_ipv6_ext_hdrs__(&data, &size, &nw_proto, &nw_frag,
&frag_hdr)) {
return 0;
}
nw_proto = nh->ip6_nxt;
} else {
return 0;
}