tcpdump mailing list archives

Re: [Patch] pcap-dos.c


From: Gisle Vanem <gvanem () broadpark no>
Date: Sun, 20 Apr 2008 05:52:24 +0200

"Guy Harris" <guy () alum mit edu> 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've called pcap_activate() on a pcap_t that's already had pcap_activate() called on it; this is a different case.

Ok, but I reckoned PCAP_ERROR was too vague. I'm not sure what
errorcode would cover this case.

--gv
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: