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]

 



From: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date: Tue, 9 Mar 2010 18:03:02 +0100 (CET)

> On Tuesday 2010-03-09 17:48, Lutz Jaenicke wrote:
> 
>>On some platforms (here: Intel IXP4xx ARM big endian)
>>sizeof(struct nf_ct_tcp_flags) evaluates to 4 bytes while in the user
>>space code 2 bytes is hard coded.
> 
> Why does it evaluate to 4 bytes? That seems to go against all good C 
> practice.

It's just what the ARM ABI does.

We have to do something similar in the IPV6 stack for
the same reason.

struct nd_opt_hdr {
	__u8		nd_opt_type;
	__u8		nd_opt_len;
} __attribute__((__packed__));

--
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