From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: compat_xt_counters is not compatible Date: Sat, 15 Apr 2006 18:37:22 +0200 Message-ID: <44412142.9070409@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Andreas Schwab In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Andreas Schwab wrote: > struct compat_xt_counters uses uint32_t[4], which has 4 byte alignment, > but userspace uses uint64_t[2], which has 8 byte alignment. This breaks > iptables in 2.6.17-rc1. Did you actually see the breakage? gcc on x86 uses 8 byte alignment for u_int64_t, but 4 byte alignment for structures with embedded u_int64_t members. It appears to work just fine on my x86_64.