]> git.karo-electronics.de Git - linux-beck.git/commit
test_bpf: add more tests for LD_ABS and LD_IND.
authorNicolas Schichan <nschichan@freebox.fr>
Tue, 4 Aug 2015 13:19:11 +0000 (15:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:02:32 +0000 (22:02 -0700)
commit08fcb08fc06758411d099bcd6a60d6cdee2d50a7
treef9b883989277c8321b2064c653d95148dc8cba47
parentd2648d4e268cee60c9c917a04c3fbc4e8c3bbc7e
test_bpf: add more tests for LD_ABS and LD_IND.

This exerces the LD_ABS and LD_IND instructions for various sizes and
alignments. This also checks that X when used as an offset to a
BPF_IND instruction first in a filter is correctly set to 0.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c