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)
commite4d26f4b080f55e9577b45e6b51a04971eb459e9
treee7caf4bc1439ce04ac392d94dd71c13aaf90f0e4
parent51846355bc239b7d229ed7a1ea7b0333cbd23f01
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