Networking Forums

Networking Forums > Computer Networking > Linux Networking > function set packet capture promisc mode in linux?

Reply
Thread Tools Display Modes

function set packet capture promisc mode in linux?

 
 
Xend
Guest
Posts: n/a

 
      06-23-2008, 09:59 AM
are there one function can set packet capture to promisc mode in linux
library??
how can i get current vaild NIC in c programming with linux?
 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      06-23-2008, 08:29 PM
Xend wrote:
> are there one function can set packet capture to promisc mode in linux
> library??


man 7 packet tells you most of the story.

> how can i get current vaild NIC in c programming with linux?


If you want to get, e.g. "eth0", then parse the output of "ifconfig -s"

Robert
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unusual Packet Capture Between Linux and Windows Billy Mays Linux Networking 12 10-19-2011 02:29 PM
libpcap packet capture in kernel space or usermod in linux?? xzen Linux Networking 0 06-23-2008 03:28 AM
How to capture and change packet using linux? quakewang@mail.whut.edu.cn Linux Networking 0 06-23-2007 03:15 AM
Receiver sensitivity- Packet Detection v/s Packet capture Vinay Wireless Internet 1 10-14-2005 01:50 AM
mirrored port can't capture traffic in promisc mode Stuart Herd Linux Networking 0 02-02-2004 01:11 PM



1 2 3 4 5 6 7 8 9 10 11