Re: [tcpdump-workers] select() on BPF devices and Mac OS X

2006-06-30 Thread Guy Harris
Eloy Paris wrote: Wow, I feel like an idiot. Looks like I didn't do my homework well. Further digging on the mailing list archive gave me the answer: BIOCIMMEDIATE Doing an ioctl() for BIOCIMMEDIATE on the file descriptor returned by pcap_get_selectable_fd() completely fixes the problem. It w

Re: [tcpdump-workers] select() on BPF devices and Mac OS X

2006-06-30 Thread Guy Harris
Eloy A. Paris wrote: So, according to a comment from Guy in the CVS log for pcap-bpf.c, select() should work on BPF devices on Tiger. It works as well as it does on older versions of other BSDs. This means that you can do a select() on it, and, if the BPF buffer fills up, the select() will r

Re: [tcpdump-workers] select() on BPF devices and Mac OS X

2006-06-29 Thread Eloy Paris
Wow, I feel like an idiot. Looks like I didn't do my homework well. Further digging on the mailing list archive gave me the answer: BIOCIMMEDIATE Doing an ioctl() for BIOCIMMEDIATE on the file descriptor returned by pcap_get_selectable_fd() completely fixes the problem. select() works perfectly

[tcpdump-workers] select() on BPF devices and Mac OS X

2006-06-29 Thread Eloy A. Paris
Hello! Sorry to bring this up yet again. I am aware of the history here, and the caveats in the documentation. However, I am seeing some weirdness on OS X when using pcap_get_selectable_fd() and select() that I can't find any explanation for (documentation, mailing list, etc.) and that I was wonde