netdev
[Top] [All Lists]

Re: ipt_physdev.c alignment problems on parisc64

To: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
Subject: Re: ipt_physdev.c alignment problems on parisc64
From: Harald Welte <laforge@xxxxxxxxxxxxx>
Date: Tue, 16 Sep 2003 16:09:18 +0200
Cc: "David S. Miller" <davem@xxxxxxxxxx>, Bart De Schuymer <bdschuym@xxxxxxxxxx>, acme@xxxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <1063703910.5948.85.camel@xxxxxxxxxxxxxxxxxxxxxx>
Mail-followup-to: Harald Welte <laforge@xxxxxxxxxxxxx>, Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, Bart De Schuymer <bdschuym@xxxxxxxxxx>, acme@xxxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
References: <200309022116.41697.bdschuym@xxxxxxxxxx> <200309132159.37834.bdschuym@xxxxxxxxxx> <20030915155903.12a3f95d.davem@xxxxxxxxxx> <200309160805.08171.bdschuym@xxxxxxxxxx> <20030915230259.79f5a545.davem@xxxxxxxxxx> <1063703910.5948.85.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.4i
On Tue, Sep 16, 2003 at 11:18:34AM +0200, Henrik Nordstrom wrote:
> tis 2003-09-16 klockan 08.02 skrev David S. Miller:
> 
> > Also, another solution could be to store the object inside the kernel
> > using a different structure, one where you can guarentee the alignment
> > of these things properly.
> 
> unfortunately iptables does not allow such differences between userspace
> and kernel representation..

yes. yes. yes.  The whole 'kernel internal data structure exported to
userspace' is a fundamental design flaw of iptables.  There's nothing we
can do about it, we'll have to live with it :(

That's why the yet-to-be-completed pkttables will use what I call vTLV's
(versioned TLV's) for all [netlink based] kernel-userspace
communication.

> Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
> MARA Systems AB

-- 
- Harald Welte <laforge@xxxxxxxxxxxxx>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

Attachment: pgpIkJyn5qdXc.pgp
Description: PGP signature

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