tools: selftests: psock_tpacket: get rid of macro wrappers
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 1 Jul 2013 16:09:50 +0000 (18:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 07:23:57 +0000 (00:23 -0700)
commit37beae65fa4a683b2f17f3472708ab58d134b03c
treeca2ce4693f596cdc680a45a010429b7311aac451
parentc590b5e2f05b5e98e614382582b7ae4cddb37599
tools: selftests: psock_tpacket: get rid of macro wrappers

The TPACKET_V3 test code consists of a lot of unecessary macro
wrappers that rather obfuscate what members are accessed in what
way. So get rid of them and make the code more readable. Also
credit Chetan for providing tpacket_v3 example code. Furthermore,
get rid of private offset usage, as we do not need it here.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/psock_tpacket.c