Re: [PATCH 1/1] netfilter: nf_ct_tcp: pack nf_ct_tcp_flags to match user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 09, 2010 at 06:02:30PM +0100, Eric Dumazet wrote:
> Le mardi 09 mars 2010 à 17:48 +0100, Lutz Jaenicke a écrit :
> >  
> > -struct nf_ct_tcp_flags {
> > +struct __attribute__ ((packed)) nf_ct_tcp_flags {
> >  	__u8 flags;
> >  	__u8 mask;
> >  };
> 
> Preferred way is to use :
> 
> struct nf_ct_tcp_flags {
> 	...
> 	} __attribute__ ((packed));
> 
> 
> This eases grep games a bit.

Makes sense.
	Lutz
-- 
Dr.-Ing. Lutz Jänicke
CTO
Innominate Security Technologies AG  /protecting industrial networks/
tel: +49.30.921028-200
fax: +49.30.921028-020
Rudower Chaussee 13
D-12489 Berlin, Germany
www.innominate.com

Register Court: AG Charlottenburg, HR B 81603
Management Board: Dirk Seewald
Chairman of the Supervisory Board: Volker Bibelhausen
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux