]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d7f67f5e9b5d96d0184893cf526f69fca5a6e9e
tree197fe97f042aa6975409bcf0a3124c4e0fab1aaa
parentfc13994829efe017858ed8f4e30af176fa3ad2a1
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