On Fri, Apr 06, 2007 at 08:41:00PM -0300, Martín Ferrari wrote:
> OK, I've read it, but I still don't get three things:
> 
> - why ifconfig can set promisc mode and then get it right?

if you set promisc over the old ioctl interface, then it is reported by the
kernel correctly.

> - why iproute does the same as ifconfig, and doesn't work as said in the 
> thread?

I think ip does not the same, it uses netdev instead of ioctl. Not sure if
something has changed for ip.

> - what is the interface that should be used to report correctly
> promisc mode when tcpdump is running??

Thats a good question :) I guess a solution would be to export the counter
to userspace (which would most likely be done with netlink or sysfs) and
then print it. I think a short time for for this issue could be to update
the man page (and have a look in root kit detectors, they usually can tell
when the system is in promisc)

Gruss
Bernd


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to