net: filter: fix nlattr and nlattr_nest BPF tests
authorAlexei Starovoitov <ast@plumgrid.com>
Sat, 7 Jun 2014 00:48:20 +0000 (17:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 07:13:16 +0000 (00:13 -0700)
commitdf6d0f983a59c333bc2b0cb82b65441b34310cf7
tree88702d7db2e6fc50e04876d8ea389b99d99d61c3
parente430f34ee5192c84bcabd3c79ab7e2388b5eec74
net: filter: fix nlattr and nlattr_nest BPF tests

- 'struct nlattr' must be 2 byte aligned
- provide big-endian input data for nlattr/nlattr_nest tests

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