]> git.baikalelectronics.ru Git - kernel.git/commit
packet: minor: add generic tpacket_uhdr to access packet headers
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 16 Apr 2013 01:57:46 +0000 (01:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Apr 2013 20:43:34 +0000 (16:43 -0400)
commit2275db619e5f009d036a3c19901d0df96f9f2297
tree0cb73f7297e1ef2685fcec6310d530ea2993d19e
parent1af2386e92585e2b8819bd588dffbaec6d07bd17
packet: minor: add generic tpacket_uhdr to access packet headers

There is no need to add a dozen unions each time at the start
of the function. So, do this once and use it instead. Thus, we
can remove some duplicate code and make it more readable.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c