summaryrefslogtreecommitdiffstats
path: root/samples/bpf/sock_example.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-05-15 16:20:52 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-16 22:04:52 +0200
commit44edef77bd92730e1520b07f5ae2c9f4628738a8 (patch)
treec974f9f6e52e873b0444c3f8f634741fbf74c88f /samples/bpf/sock_example.h
parent5b26ace65012cbf3b54a68c39041bcd8ae5e31a7 (diff)
downloadlinux-44edef77bd92730e1520b07f5ae2c9f4628738a8.tar.bz2
samples/bpf: Decrement ttl in fib forwarding example
Only consider forwarding packets if ttl in received packet is > 1 and decrement ttl before handing off to bpf_redirect_map. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/sock_example.h')
0 files changed, 0 insertions, 0 deletions