Re: [tcpdump-workers] How to use the non-promiscous mode?

2004-09-08 Thread Guy Harris
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

Re: [tcpdump-workers] [PATCH] Add ioctl to disable bpf timestamping

2004-09-08 Thread Guy Harris
(Noise to defeat the duplicate-message detector for [EMAIL PROTECTED]) Guy Harris wrote: This is probably a pointless optimization, "This" referring not to Bruce's proposed change, but to my proposed change to have one time stamp call per packet. - This is the tcpdump-workers list. Visit https:/

[tcpdump-workers] How to use the non-promiscous mode?

2004-09-08 Thread fullc0de
Hello~ I have a question. :-) I want to use libpcap with non-promiscous mode. But I don't know how to do. Please teach me~~.. -- /-\ | Have a Ggle Time~*| \-/ - This is the tcpdump-wo

Re: [tcpdump-workers] [PATCH] Add ioctl to disable bpf timestamping

2004-09-08 Thread Guy Harris
On Sep 8, 2004, at 2:26 AM, Bruce M Simpson wrote: Here's a patch against 5.3 to add a per-instance switch which allows the user to specify if captured packets should be timestamped (and, if so, whether microtime() or the faster but less accurate getmicrotime() call should be used). This is probabl

[tcpdump-workers] [PATCH] Add ioctl to disable bpf timestamping

2004-09-08 Thread Bruce M Simpson
Here's a patch against 5.3 to add a per-instance switch which allows the user to specify if captured packets should be timestamped (and, if so, whether microtime() or the faster but less accurate getmicrotime() call should be used). Comments/flames/etc to the usual... BMS Index: bpf.c ===