File 0001-packet-fill-the-gap-of-TPACKET_ALIGNMENT-with-zeros.patch of Package linux-glibc-devel

From e4d26f4b080f55e9577b45e6b51a04971eb459e9 Mon Sep 17 00:00:00 2001
From: Atzm Watanabe <atzm@stratosphere.co.jp>
Date: Tue, 17 Dec 2013 22:53:36 +0900
Subject: [PATCH 1/2] packet: fill the gap of TPACKET_ALIGNMENT with zeros
Git-commit: e4d26f4b080f55e9577b45e6b51a04971eb459e9
Patch-mainline: v3.14-rc1
References: bnc#874131


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>
Acked-by: Michal Marek <mmarek@suse.cz>
---
 usr/include/linux/if_packet.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-glibc-devel-3.12.orig/usr/include/linux/if_packet.h
+++ linux-glibc-devel-3.12/usr/include/linux/if_packet.h
@@ -132,7 +132,7 @@ struct tpacket2_hdr {
 	__u32		tp_sec;
 	__u32		tp_nsec;
 	__u16		tp_vlan_tci;
-	__u16		tp_padding;
+	__u8		tp_padding[6];
 };
 
 struct tpacket_hdr_variant1 {
@@ -153,6 +153,7 @@ struct tpacket3_hdr {
 	union {
 		struct tpacket_hdr_variant1 hv1;
 	};
+	__u8		tp_padding[12];
 };
 
 struct tpacket_bd_ts {
openSUSE Build Service is sponsored by