]> 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)
commitce76c048be218c8f0389b48b0e806421accc27b7
tree81825a6630b05bfe23f21c9935365a1437344942
parent94dae98575e631cc4d9fd0b1df36f2ea143b021f
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