]> git.baikalelectronics.ru Git - kernel.git/commit
packet: fill the gap of TPACKET_ALIGNMENT with zeros
authorAtzm Watanabe <atzm@stratosphere.co.jp>
Tue, 17 Dec 2013 13:53:36 +0000 (22:53 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Dec 2013 05:36:16 +0000 (00:36 -0500)
commitdfbf85c743afea41df46a2ef20cf298d307d8bbe
treee7caf4bc1439ce04ac392d94dd71c13aaf90f0e4
parente7e8ce4207ae78ff7dd9ad507997894467f38b75
packet: fill the gap of TPACKET_ALIGNMENT with zeros

struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT.
Explicitly defining and zeroing the gap of this makes additional changes
easier.

Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_packet.h
net/packet/af_packet.c