]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftest/bpf: Fix IPV6FR handling in flow dissector
authorSantucci Pierpaolo <santucci@epigenesys.com>
Mon, 16 Nov 2020 10:30:37 +0000 (11:30 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 16 Nov 2020 15:23:29 +0000 (16:23 +0100)
commit024cd2cbd1ca2d29e6df538855d52c4e5990cab7
tree3b53d3abd891a502c3f259b69d540e2cc4e3fcda
parent2d38c5802f4626e85d280b68481c3f3ca4853ecb
selftest/bpf: Fix IPV6FR handling in flow dissector

From second fragment on, IPV6FR program must stop the dissection of IPV6
fragmented packet. This is the same approach used for IPV4 fragmentation.
This fixes the flow keys calculation for the upper-layer protocols.
Note that according to RFC8200, the first fragment packet must include
the upper-layer header.

Signed-off-by: Santucci Pierpaolo <santucci@epigenesys.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/X7JUzUj34ceE2wBm@santucci.pierpaolo
tools/testing/selftests/bpf/progs/bpf_flow.c