Re: [tcpdump-workers] Bug in libpcap: savefile.c / get_selectable_fd()

2009-03-17 Thread Guy Harris
On Mar 17, 2009, at 4:38 PM, Guy Harris wrote: If that means that you can't tell the difference between "end of file on the pipe", "no more packets available right now", and "an error occurred while reading from the pipe", as might be the case, file a bug on that. This will almost certai

Re: [tcpdump-workers] Bug in libpcap: savefile.c / get_selectable_fd()

2009-03-17 Thread Guy Harris
On Mar 17, 2009, at 3:33 PM, Shaked, Nitzan wrote: In general, it's a bad thing to mix buffered IO (stdlib, such as fread,fread,fseek, etc) with kernel io (read/write/seek/select, etc). At least when it comes to mixing stdio and select(), it's not a bad thing, you just have to know what yo

[tcpdump-workers] Bug in libpcap: savefile.c / get_selectable_fd()

2009-03-17 Thread Shaked, Nitzan
Hello all I hope this mailing list is active, and that this is the right place to post to. In any case, I believe I have discovered a bug: get_selectable_fd() does not work well when used with pcap_open_offline(). The symptom is that if you use, as was the poet's intention, get_selectable_fd()