OSDN Git Service

bpf: sockmap, add BPF_F_INGRESS tests
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 28 Mar 2018 19:49:20 +0000 (12:49 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 29 Mar 2018 22:09:43 +0000 (00:09 +0200)
commit2596f64cb2ff5767166bee4e812734747c7a0474
treebab85758f35f1036680347ffb84115f9b5aa35d7
parent8934ce2fd08171e8605f7fada91ee7619fe17ab8
bpf: sockmap, add BPF_F_INGRESS tests

Add a set of tests to verify ingress flag in redirect helpers
works correctly with various msg sizes.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/sockmap/sockmap_kern.c
samples/sockmap/sockmap_test.sh
samples/sockmap/sockmap_user.c