Re: iface in promiscuous mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/6/12 guildivernos guildivernos <guildivernos@xxxxxxxxx>:
> Hi list,

Hi!

> I need to check if my iface is in promiscuous mode. I can check this
> with ioctl, but this only works if I set the iface in promisc with
> ifconfig (no with tcpdump). I saw that tcpdump uses setsockopt to put
> the iface in promiscuous mode, but I cant find the way to use
> getsockopt to check the iface state. Is there any way of doing this ?
>

There is another way. Netlink sockets can be used to do the trick,
since they can bring interface state for you. Take a look at a utility
called ifchk (http://www.noorg.org/ifchk/ifchk.html). This is a good
worakaround for the same trouble you are reporting.


Cheers
Mauad

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux