diff options
author | Dmitry Yakunin <zeil@yandex-team.ru> | 2020-08-03 11:05:44 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-08-03 23:31:59 +0200 |
commit | fa5cb548ced61b9d3095f32f8a7e427a248c65ee (patch) | |
tree | 04e21e7068cb009498667e619e213bb90ebea164 /tools | |
parent | Merge branch 'bpf-libbpf-btf-parsing' (diff) | |
download | linux-fa5cb548ced61b9d3095f32f8a7e427a248c65ee.tar.xz linux-fa5cb548ced61b9d3095f32f8a7e427a248c65ee.zip |
bpf: Setup socket family and addresses in bpf_prog_test_run_skb
Now it's impossible to test all branches of cgroup_skb bpf program which
accesses skb->family and skb->{local,remote}_ip{4,6} fields because they
are zeroed during socket allocation. This commit fills socket family and
addresses from related fields in constructed skb.
Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200803090545.82046-2-zeil@yandex-team.ru
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions