diff options
| author | Shmulik Ladkani <[email protected]> | 2022-08-21 11:35:19 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-23 20:48:12 +0000 |
| commit | d6513727c2af39a8cffb0d9b07376e51a85f347f (patch) | |
| tree | 8921b6c73ef0bd0cfcb561954bb42c0e8cc4f98e /scripts/bpf_doc.py | |
| parent | bpf, test_run: Propagate bpf_flow_dissect's retval to user's bpf_attr.test.re... (diff) | |
| download | kernel-d6513727c2af39a8cffb0d9b07376e51a85f347f.tar.gz kernel-d6513727c2af39a8cffb0d9b07376e51a85f347f.zip | |
bpf, selftests: Test BPF_FLOW_DISSECTOR_CONTINUE
The dissector program returns BPF_FLOW_DISSECTOR_CONTINUE (and avoids
setting skb->flow_keys or last_dissection map) in case it encounters
IP packets whose (outer) source address is 127.0.0.127.
Additional test is added to prog_tests/flow_dissector.c which sets
this address as test's pkk.iph.saddr, with the expected retval of
BPF_FLOW_DISSECTOR_CONTINUE.
Also, legacy test_flow_dissector.sh was similarly augmented.
Signed-off-by: Shmulik Ladkani <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Stanislav Fomichev <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
