LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   eth0 in promisc mode (https://www.linuxquestions.org/questions/programming-9/eth0-in-promisc-mode-23488/)

sabeel_ansari 06-15-2002 12:59 PM

eth0 in promisc mode
 
hey
i saw a question in the Networking forum in which someone has a problem with his eth0 (NIC).
he cant set it back to non-promisc mode.

i know how to put a card into promisc mode (prog in C - you get the ifreq struct and set the promisc flag....).
how do i switch it back to non-promisc mode??

Mik 06-17-2002 03:19 AM

Never wrote any programs which changes the promiscuous mode of a network card. But I assume just clearing the IFF_PROMISC bit in the ifr_flags field, and then repeating the ioctl call should work.

valar 06-21-2002 06:14 AM

:study: man ifconfig

probably : ifconfig eth0 -promisc

just a matter of fiddling around, shouldnt be to diffcult.


--------------
:jawa:


All times are GMT -5. The time now is 02:39 AM.