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 rather than md.device and not to bother setting md.device (the old code didn't use md.device).
@@ -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.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.