Re: [tcpdump-workers] pcap_t not writeable on OpenBSD

2012-01-11 Thread Fernando Gont
Hi, Guy, On 01/10/2012 10:43 PM, Guy Harris wrote: >> I would expect that if there are no buffers available, >> pcap_inject() or blocks, rather than silently fail. > > "Blocks" and "silently fails" aren't the only alternatives; "returns > -1 and sets errno to an error such as ENOBUFS" is a third

Re: [tcpdump-workers] Initializing a device

2012-01-11 Thread Guy Harris
On Jan 6, 2012, at 2:16 PM, Akos Vandra wrote: > On 6 January 2012 17:16, Jakub Zawadzki wrote: > >> Let's have just: >> int pcap_setparam(pcap_t *p, const char *param, const char *value) >> >> If param is not understand, or value is invalid for given param (like: not >> integer) >> it shoul