]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sockmap, code sockmap_test in C
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 23 Apr 2018 21:30:28 +0000 (14:30 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Apr 2018 22:04:49 +0000 (00:04 +0200)
commitd4c51887ab7236c8428a91067af37ffafa3cc989
tree81825a6630b05bfe23f21c9935365a1437344942
parent028ab28b8af20d6399b1519be4f850f06ae40862
bpf: sockmap, code sockmap_test in C

By moving sockmap_test from shell script into C we can run it directly
from selftests, but we can also push the input/output around in proper
structures.

However, keep the CLI options around because they are useful for
debugging when a paticular pattern of msghdr or sockmap options
trips up the sockmap code path.

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