Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2004 09:46:08 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        Brian Fundakowski Feldman <green@FreeBSD.org>
Cc:        Max Laier <max@love2party.net>
Subject:   Re: cvs commit: src/sys/net if_tap.c
Message-ID:  <XFMail.20040813094608.jdp@polstra.com>
In-Reply-To: <20040811020431.GA981@green.homeunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11-Aug-2004 Brian Fundakowski Feldman wrote:
> On Wed, Aug 11, 2004 at 03:33:25AM +0200, Max Laier wrote:
>> On Wednesday 11 August 2004 02:12, Maksim Yevmenkin wrote:
>> > emax        2004-08-11 00:12:27 UTC
>> >
>> >   FreeBSD src repository
>> >
>> >   Modified files:
>> >     sys/net              if_tap.c
>> >   Log:
>> >   Set IFF_RUNNING flag on the interface as soon as the control device is
>> > opened.
>> 
>> Erm ...
>> 1) IFF_RUNNING has a different meaning (for all I know) - "resources 
>> allocated" i.e. address(es) assigned. See if_loop.c for instance.
>> 2) What are these spl's for? You are not going to MFC that anyway as it would 
>> be user visible.
>> 
>> I recon a thread with this topic, but I think the outcome was that this is not 
>> a good thing to do. Can't find the thread though.
> 
> Having written a driver recently, the best I could find is that IFF_RUNNING
> essentially means not dead...

That's pretty much correct.  IFF_UP is an administrative control
that expresses the desired state of the interface.  The driver never
changes IFF_UP.  IFF_RUNNING is the driver's idea of the _actual_
state.  The driver changes IFF_RUNNING in response to changes in
IFF_UP, or in response to error conditions that make the driver unable
to function.

Neither IFF_UP nor IFF_RUNNING have anything at all to do with whether
any addresses are assigned to the interface.

John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20040813094608.jdp>