netdev
[Top] [All Lists]

Re: ipt_physdev.c alignment problems on parisc64

To: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>, netfilter-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: ipt_physdev.c alignment problems on parisc64
From: Bart De Schuymer <bdschuym@xxxxxxxxxx>
Date: Tue, 2 Sep 2003 21:16:41 +0200
Cc: Linux Networking Development Mailing List <netdev@xxxxxxxxxxx>
In-reply-to: <20030902143050.GC3398@conectiva.com.br>
References: <20030902143050.GC3398@conectiva.com.br>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.5
On Tuesday 02 September 2003 16:30, Arnaldo Carvalho de Melo wrote:
> The 1.786.1.54 changeset (i.e. the initial ipt_physdev.c one 8) created

Does this fix it?

cheers,
Bart

--- linux-2.6.0-test4/include/linux/netfilter_ipv4/ipt_physdev.h.old    
2003-09-02 21:11:12.000000000 +0200
+++ linux-2.6.0-test4/include/linux/netfilter_ipv4/ipt_physdev.h        
2003-09-02 21:12:30.000000000 +0200
@@ -15,7 +15,7 @@
 struct ipt_physdev_info {
        u_int8_t invert;
        u_int8_t bitmask;
-       char physindev[IFNAMSIZ];
+       char physindev[IFNAMSIZ] __attribute__ ((aligned (__alignof__(unsigned 
long))));
        char in_mask[IFNAMSIZ];
        char physoutdev[IFNAMSIZ];
        char out_mask[IFNAMSIZ];


<Prev in Thread] Current Thread [Next in Thread>