netdev
[Top] [All Lists]

Re: ipt_physdev.c alignment problems on parisc64

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: ipt_physdev.c alignment problems on parisc64
From: Harald Welte <laforge@xxxxxxxxxxxxx>
Date: Sat, 20 Sep 2003 07:50:02 +0200
Cc: "David S. Miller" <davem@xxxxxxxxxx>, Bart De Schuymer <bdschuym@xxxxxxxxxx>, acme@xxxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <1063371268.1031.96.camel@jzny.localdomain>
Mail-followup-to: Harald Welte <laforge@xxxxxxxxxxxxx>, jamal <hadi@xxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, Bart De Schuymer <bdschuym@xxxxxxxxxx>, acme@xxxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
References: <20030912085606.GC2350@obroa-skai.de.gnumonks.org> <1063371268.1031.96.camel@jzny.localdomain>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.4i
On Fri, Sep 12, 2003 at 08:54:29AM -0400, jamal wrote:
> On Fri, 2003-09-12 at 04:56, Harald Welte wrote:
> > On Thu, Sep 11, 2003 at 09:40:46PM -0400, jamal wrote:
> > > Harald,
> > > 
> > > Could you not resolve all the ifindices of the said ppp+ interfaces
> > > at rule installation time and do an integer compare instead?
> > 
> > No, this is a different semantic.  Ifindexes change when an interface
> > goes down and comes up again (let's say you have a PPTP tunnel server
> > which terminates a couple of ppp* interfaces).
> > 
> 
> If ifindices change for the same device name then that would be a bug.
> The only time they should change is if a) you reboot or b) you unload a
> module after ifconfiged down the device(s) and then reload it later.
> In both cases if you have exactly the same setup, the chances of those
> ifindices changing are very slim.

What about a ppp interface that is deleted because pppd terminated.
Then you start a new pppd that uses the same ppp interface [i.e. ppp12].
Would ifindex still be guaranteed to be the same in that case?

> cheers,
> jamal

-- 
- 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: pgpcbSSBASsRi.pgp
Description: PGP signature

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