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