net: filter: use block statements in tcpdump tests
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 26 May 2014 18:17:35 +0000 (20:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 May 2014 23:27:39 +0000 (16:27 -0700)
commitce25b68b74593bbb676ec087b3a0c69f94df7de0
tree197fe97f042aa6975409bcf0a3124c4e0fab1aaa
parent108cc22a93e1843e728b9753442429c71f48f9e4
net: filter: use block statements in tcpdump tests

This patch converts raw opcodes for tcpdump tests into
BPF_STMT()/BPF_JUMP() combinations, which brings it into
conformity with the rest of the patches and it also makes
life easier to grasp what's going on in these particular
test cases when they ever fail. Also arrange payload from
the jump+holes test in a way as we have with other packet
payloads in the test suite.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c