From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: iptables not working with monolithic 2.6.26.5 kernel on ARM Date: Sun, 05 Oct 2008 15:24:55 +0200 Message-ID: <48E8C027.6040209@trash.net> References: <18661.41641.113458.932029@martins.ozlabs.org> <48E6166F.40607@trash.net> <18662.61266.69230.675687@martins.ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Martin Schwenke , netfilter-devel@vger.kernel.org To: Jan Engelhardt Return-path: Received: from stinky.trash.net ([213.144.137.162]:44678 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752968AbYJENZB (ORCPT ); Sun, 5 Oct 2008 09:25:01 -0400 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Jan Engelhardt wrote: > You can change the XT_ALIGN macro in the > kernel/include/linux/netfilter/x_tables.h and > iptables/include/linux/netfilter/x_tables.h to read > > #ifndef roundup > #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) > #endif > #define XT_ALIGN(s) roundup(s, sizeof(uint64_t)) > > and try again. There might be more alignment issues hiding, so > don't expect it to fix it all in a magic whizz. An idea to avoid these problems in the future would be to change the kernel so it accepts stricter alignment than what we currently use and after a grace period (maybe 1-2 years) change XT_ALIGN in userspace so it starts using u64 or simply 8 byte alignment everywhere.