tcpdump mailing list archives

Re: capturing on both interfaces simultaneously


From: Cedric Cellier <rixed () happyleptic org>
Date: Sun, 11 Dec 2011 08:58:17 +0100

I got it to work.
(...)
default:           /* We got traffic */
pcap_dispatch(pcap0,-1, (void *) packet_callback, NULL);
pcap_dispatch(pcap1,-1, (void *) packet_callback2, NULL);

So that other may benefit from it in the future, I
guess your fixed version looks like:

default:
  if (t==pcap0) pcap_dispatch(pcap0,...)
  else if (t==pcap1) pcap_dispatch(pcap1,...)


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


Current thread: