bpf: sockmap, add msg_peek tests to test_sockmap
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 16 Oct 2018 18:08:09 +0000 (11:08 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Oct 2018 00:30:32 +0000 (02:30 +0200)
commit753fb2ee09345e0730e610b2ee3a01964fe22a63
tree91c572d5fd4344b131082e7a1e5e033245dc21b8
parent02c558b2d5d679fbbcaa5b9689484c7e0f8abb7b
bpf: sockmap, add msg_peek tests to test_sockmap

Add tests that do a MSG_PEEK recv followed by a regular receive to
test flag support.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_sockmap.c