tcpdump mailing list archives
Re: Bug in libpcap: savefile.c / get_selectable_fd()
From: Guy Harris <guy () alum mit edu>
Date: Tue, 17 Mar 2009 16:56:24 -0700
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 certainly be the case. The code path for reading in blocking mode (when running an ordinary command such as tcpdump, reading from a file or from its standard input in a pipeline) should be buffered and should, if possible, avoid doing extra work to cope with partial reads; the code path for reading in non-blocking mode should also be buffered (so that you get as much data as possible from a single read call) but should be able to cope with partial reads. File a bug on that.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Bug in libpcap: savefile.c / get_selectable_fd() Shaked, Nitzan (Mar 17)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Guy Harris (Mar 17)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Guy Harris (Mar 17)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Shaked, Nitzan (Mar 19)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Guy Harris (Mar 19)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Shaked, Nitzan (Mar 19)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Shaked, Nitzan (Mar 22)
- Re: Bug in libpcap: savefile.c / get_selectable_fd() Guy Harris (Mar 17)