LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2002, 12:59 PM   #1
sabeel_ansari
LQ Newbie
 
Registered: Nov 2000
Location: ottawa, canada
Posts: 18

Rep: Reputation: 0
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??
 
Old 06-17-2002, 03:19 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
 
Old 06-21-2002, 06:14 AM   #3
valar
LQ Newbie
 
Registered: Jun 2002
Location: Norway
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
man ifconfig

probably : ifconfig eth0 -promisc

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


--------------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem loading in promisc mode juanb Linux - Networking 1 09-16-2004 07:54 PM
set nic in promisc mode juanb Linux - Networking 1 09-01-2004 03:40 PM
configuring an interface to go into promisc mode on bootup xyyz Linux - Newbie 1 03-19-2004 04:19 AM
Arp packets and Wifi Promisc mode SirSlappy Linux - Security 1 12-06-2003 10:02 AM
Promisc mode:Win2k question A-dummy Linux - Networking 3 09-03-2002 10:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration