diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2019-06-16 00:53:48 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-17 23:18:50 +0200 |
commit | 56f0f84e69c7a7f229dfa524b13b0ceb6ce9b09e (patch) | |
tree | b3b55bdd26f17203126d7c9a1f4f7f0393c1c2e4 /samples/bpf | |
parent | Merge branch 'tcp-fixes' (diff) | |
download | linux-56f0f84e69c7a7f229dfa524b13b0ceb6ce9b09e.tar.xz linux-56f0f84e69c7a7f229dfa524b13b0ceb6ce9b09e.zip |
bpf: fix the check that forwarding is enabled in bpf_ipv6_fib_lookup
The bpf_ipv6_fib_lookup function should return BPF_FIB_LKUP_RET_FWD_DISABLED
when forwarding is disabled for the input device. However instead of checking
if forwarding is enabled on the input device, it checked the global
net->ipv6.devconf_all->forwarding flag. Change it to behave as expected.
Fixes: 87f5fc7e48dd ("bpf: Provide helper to do forwarding lookups in kernel FIB table")
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions