Re: [tcpdump-workers] [Patch] pcap-dos.c

2008-04-19 Thread Guy Harris
Gisle Vanem wrote: Ok, but I reckoned PCAP_ERROR was too vague. I'm not sure what errorcode would cover this case. Perhaps we should add a new error code. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] [Patch] pcap-dos.c

2008-04-19 Thread Gisle Vanem
"Guy Harris" <[EMAIL PROTECTED]> wrote: @@ -201,7 +202,7 @@ "Cannot use different devices simultaneously " "(`%s' vs. `%s')", active_dev->name, pcap->md.device); free (pcap); -err = PCAP_ERROR; +err = PCAP_ERROR_ACTIVATED; PCAP_ERROR_ACTIVATED means you'

[tcpdump-workers] tcpdump Mac binary

2008-04-19 Thread Pierre Rudloff
Here is tcpdump 3.9.8 compiled on MacOS 10.4. Maybe it can help you. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

Re: [tcpdump-workers] [Patch] pcap-dos.c

2008-04-19 Thread Guy Harris
Gisle Vanem wrote: The recent change for pcap_activate() broke the DOS-port. Here's a small fix: Checked into the main and 1.0 branches, along with some changes and other fixes. p->activate_op = pcap_activate_dos; + p->md.device = device; I just changed it to use opt.device r

[tcpdump-workers] [Patch] pcap-dos.c

2008-04-19 Thread Gisle Vanem
The recent change for pcap_activate() broke the DOS-port. Here's a small fix: --- pcap-dos.c.orig Mon Apr 14 19:40:58 2008 +++ pcap-doc.cThu Apr 17 15:33:00 2008 @@ -97,10 +97,10 @@ static struct device *handle_to_device [20]; -static void pcap_activate_dos (pcap_t *p); +static int pc