tcpdump mailing list archives
Re: pcap_t not writeable on OpenBSD
From: Sam Roberts <vieuxtech () gmail com>
Date: Tue, 10 Jan 2012 12:13:56 -0800
On Mon, Jan 9, 2012 at 8:49 PM, Fernando Gont <fernando () gont com ar> wrote:
I'm doing I/O multiplexing with the pcap descriptor, and it turns out that on OpenBSD the underlying descriptor for a pcap_t is never writeable. Note: No problems in Linux and FreeBSD -- so far only in OpenBSD.
Are you capturing, or injecting? Shouldn't you be waiting for it to be readable for capture? For injection, on linux anyhow, a PF_PACKET device is always writeable, but I'm pretty sure it discards packets if you write too fast. Cheers, Sam - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- pcap_t not writeable on OpenBSD Fernando Gont (Jan 10)
- Re: pcap_t not writeable on OpenBSD Sam Roberts (Jan 10)
- Re: pcap_t not writeable on OpenBSD Fernando Gont (Jan 10)
- Re: pcap_t not writeable on OpenBSD Guy Harris (Jan 10)
- Re: pcap_t not writeable on OpenBSD Fernando Gont (Jan 10)
- Re: pcap_t not writeable on OpenBSD Guy Harris (Jan 10)
- Re: pcap_t not writeable on OpenBSD Fernando Gont (Jan 11)
- Re: pcap_t not writeable on OpenBSD Fernando Gont (Jan 10)
- Re: pcap_t not writeable on OpenBSD Sam Roberts (Jan 10)
