tcpdump mailing list archives

Re: How to use the non-promiscous mode?


From: fullc0de <fullc0de () gmail com>
Date: Thu, 9 Sep 2004 17:10:11 +0900

 Thank you for your reply message and point out my mistake about "How". :-)

 When I searched, I've not been able to find a function
"pcap_open_log()" in pcap.h.
How do I can? :-)

 The following code is used in my program.

pcap_open(d->name, 65536, 0, 1000, NULL, errbuf)


 I Thought I am using the non-promiscous mode in my program. But,
unexpected packet was captured.
 I want to capture all packet related to the my host. 



On Wed, 08 Sep 2004 23:54:43 -0700, Guy Harris <guy () alum mit edu> wrote:
fullc0de wrote:

I want to use libpcap with non-promiscous mode. But I don't know
how to do.

"How" in what sense?

In the simple sense of "how do I make my program capture in
non-promiscuous mode", the answer is "pass 0 as the value of the
'promisc' flag when you call 'pcap_open_log()'".

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.




-- 
/-------------------------------------------------\
|      Have a Goooogle Time~*        |
\-------------------------------------------------/
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: