netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "Martín Ferrari" <martin.ferrari@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: IFF_PROMISC again
Date: Tue, 22 May 2007 17:08:18 -0700	[thread overview]
Message-ID: <465385F2.7080309@candelatech.com> (raw)
In-Reply-To: <1178044568.7116.14.camel@abraxas.dyn-o-saur.com>

Martín Ferrari wrote:
> Hi, for the nth time I send this email, hoping that majordomo won't eat
> it again.
> 
> 
> I know this has been extensibly discussed circa 2001, but I found that
> there's still problems: in debian (at least) neither ifconfig nor ip
> can tell that the interface is in promiscuous mode.
> 
> I know about the deprecation of IFF_PROMISC, but I couldn't find out
> which is the current way of knowing the real state of the interface. I
> want to fix ifconfig, so this is not an issue of
> PACKET_(ADD|REMOVE)_MEMBERSHIP, I need to query the real device state.

I have the same problem.  I think you can tell by looking at bit 0x100
in /sys/class/net/[ethX]/flags

Not exactly fun to use, but it seems to work.

Anyone know the reasoning for masking out the PROMISC flag
in dev_get_flags() ?

Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  reply	other threads:[~2007-05-23  0:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01 18:36 IFF_PROMISC again Martín Ferrari
2007-05-23  0:08 ` Ben Greear [this message]
2007-05-23  0:12   ` David Miller
2007-05-23  0:22     ` Ben Greear
2007-05-26  6:42     ` Martín Ferrari
2007-05-26  6:28   ` Martín Ferrari
     [not found]     ` <20070527094923.3b4705b6@freepuppy>
2007-05-28  1:05       ` Martín Ferrari
     [not found]         ` <20070527235819.3695a2a1@freepuppy>
2007-05-28 22:07           ` Martín Ferrari

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=465385F2.7080309@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=martin.ferrari@gmail.com \
    --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).