]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit15f66a91a66bfc5d2ae95b9a3356a3fe114ca2f3
tree81825a6630b05bfe23f21c9935365a1437344942
parent6595c7426acbcc2c4a79cfe409b2c840fb2ebed3
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