netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: David Miller <davem@davemloft.net>
Cc: herbert@gondor.apana.org.au, marcel@holtmann.org, netdev@vger.kernel.org
Subject: Re: IFF_RUNNING without carrier after reboot
Date: Tue, 27 Jan 2009 11:32:36 -0500	[thread overview]
Message-ID: <20090127163236.GA26065@csclub.uwaterloo.ca> (raw)
In-Reply-To: <20081214.233625.36638431.davem@davemloft.net>

On Sun, Dec 14, 2008 at 11:36:25PM -0800, David Miller wrote:
> From: Herbert Xu <herbert@gondor.apana.org.au>
> Date: Mon, 15 Dec 2008 18:28:00 +1100
> 
> > David Miller <davem@davemloft.net> wrote:
> > >
> > > The RUNNING state has no connection to link presence.
> > > 
> > > It just means that the device has been brought up by a
> > > user configuration command like the ifconfig you ran.
> > > 
> > > It really means nothing else.
> > 
> > Well RUNNING did use to indicate carrier state.  In fact I didn't
> > even know that it had changed until this email :)
> > 
> > This is the changeset which did it:
> 
> Yes, it was a bug and we fixed it more than 2 years ago.
> Thanks for confirming :-)

So the RUNNING flag no longer indicates link state?  Wow that's going to
break some userspace quite badly.

Isn't the UP flag what indicates opstate?

What is the correct way for userspace to detect link state on an
interface?

-- 
Len Sorensen

      reply	other threads:[~2009-01-27 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-14  3:28 IFF_RUNNING without carrier after reboot Marcel Holtmann
2008-12-15  6:29 ` David Miller
2008-12-15  7:28   ` Herbert Xu
2008-12-15  7:36     ` David Miller
2009-01-27 16:32       ` Lennart Sorensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090127163236.GA26065@csclub.uwaterloo.ca \
    --to=lsorense@csclub.uwaterloo.ca \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=marcel@holtmann.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).