linux/tools/testing/selftests/net
Daniel Borkmann fdd5f43a1b selftests: psock_tpacket: fix status check
Testing like this for TP_STATUS_AVAILABLE clearly is a stupid bug
since it always returns true. Fix this by only checking for flags
where the kernel owns the packet and negate this result, since we
also could run into the non-zero status TP_STATUS_WRONG_FORMAT
and need to reclaim frames.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-29 12:26:53 -04:00
..
.gitignore net: Add .gitignore to networking selftests directory. 2013-04-19 16:36:12 -04:00
Makefile selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
psock_fanout.c selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
psock_lib.h selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
psock_tpacket.c selftests: psock_tpacket: fix status check 2013-04-29 12:26:53 -04:00
run_afpackettests selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
run_netsocktests net: Move selftests to common net/ subdirectory. 2013-03-20 15:07:56 -04:00
socket.c net: Move selftests to common net/ subdirectory. 2013-03-20 15:07:56 -04:00