diff options
| author | Andrey Ignatov <[email protected]> | 2018-12-13 21:19:01 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-12-13 22:42:16 +0000 |
| commit | 28c1272914613b6c5a0129d6d502c790d4f23d6c (patch) | |
| tree | 111a70743c7fff1c8f4a0a1720203818f8d89bc6 /tools/bpf/bpftool/prog.c | |
| parent | bpf: remove obsolete prog->aux sanitation in bpf_insn_prepare_dump (diff) | |
| download | kernel-28c1272914613b6c5a0129d6d502c790d4f23d6c.tar.gz kernel-28c1272914613b6c5a0129d6d502c790d4f23d6c.zip | |
selftests/bpf: Fix sk lookup usage in test_sock_addr
Semantic of netns_id argument of bpf_sk_lookup_tcp and bpf_sk_lookup_udp
was changed (fixed) in f71c6143c203. Corresponding changes have to be
applied to all call sites in selftests. The patch fixes corresponding
call sites in test_sock_addr test: pass BPF_F_CURRENT_NETNS instead of 0
in netns_id argument.
Fixes: f71c6143c203 ("bpf: Support sk lookup in netns with id 0")
Reported-by: Yonghong Song <[email protected]>
Signed-off-by: Andrey Ignatov <[email protected]>
Acked-by: Joe Stringer <[email protected]>
Tested-by: Yonghong Song <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
