test/bpf: use hton for endianness
authorMalvika Gupta <malvika.gupta@arm.com>
Fri, 2 Nov 2018 19:08:08 +0000 (14:08 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Nov 2018 22:33:59 +0000 (23:33 +0100)
commit6cebeb53825a9b80b82cdb3604e6ae9f54c1a923
treea384b483c0299897916417b75ceeb1fbf1aacda8
parent0aaec3760eeedf28209635229472cd898fa7a26f
test/bpf: use hton for endianness

Convert host machine endianness to networking endianness for
comparison of incoming packets with BPF filter

Suggested-by: Brian Brooks <brian.brooks@arm.com>
Signed-off-by: Malvika Gupta <malvika.gupta@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
test/bpf/t1.c
test/bpf/t3.c