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