Sam Pierson wrote:

What I meant was that in a situation where you send a single packet,
you can't pick it up as soon as it comes, you have to wait for some
other timeout value that you supply... the problem is that it only has
a time resolution of 1ms, so for applications that depend on a finer
level can't use this.

There's currently no API to request that - but if you know you're on a BSD system (e.g., by autoconf, although that should perhaps check whether there's a <net/bpf.h> header file), you can get the file descriptor for the BPF device with "pcap_fileno()" and do a BIOCIMMEDIATE ioctl on it.

(Different techniques would be needed on Windows, SunOS 5.x, and Digital/Tru64 UNIX.)
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to