netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IFF_PROMISC again
@ 2007-05-01 18:36 Martín Ferrari
  2007-05-23  0:08 ` Ben Greear
  0 siblings, 1 reply; 8+ messages in thread
From: Martín Ferrari @ 2007-05-01 18:36 UTC (permalink / raw)
  To: linux-net, netdev

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.

Also, it's unclear to me what happens when you set/reset IFF_PROMISC
and then libpcap fiddles with membership. Is this documented
somewhere?

It has been said many times that ip should give this information. I
cannot see this:

$ sudo tcpdump -ni eth2 port 3333 &
$ dmesg |tail -2
device eth2 entered promiscuous mode
audit(1175904782.767:40): dev=eth2 prom=256 old_prom=0 auid=4294967295
$ ip link show eth2
4: eth2: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen
1000
   link/ether 00:18:de:81:24:a2 brd ff:ff:ff:ff:ff:ff
$ ip -V
ip utility, iproute2-ss060323

I think that is a problem for user tools to not know about this, and I
want to fix them. I don't know how. Can anyone give me a pointer?

Thanks, Martín.

-- 
Martín Ferrari <martin.ferrari@gmail.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-28 22:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 18:36 IFF_PROMISC again Martín Ferrari
2007-05-23  0:08 ` Ben Greear
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

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).