bpf: add test cases for direct packet access
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Sep 2016 22:26:14 +0000 (00:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 03:32:11 +0000 (23:32 -0400)
commit7d95b0ab5bbe2dc9bf3fd99c27e80ced5bfa8acf
treefd9fcc0ecbd856e2fd2c186d3b841e19feda90b4
parent36bbef52c7eb646ed6247055a2acd3851e317857
bpf: add test cases for direct packet access

Add couple of test cases for direct write and the negative size issue, and
also adjust the direct packet access test4 since it asserts that writes are
not possible, but since we've just added support for writes, we need to
invert the verdict to ACCEPT, of course. Summary: 133 PASSED, 0 FAILED.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/test_verifier.c