tcpdump mailing list archives
Calling pcap_compile() more than once on the same pcap_t *
From: Fernando Gont <fernando () gont com ar>
Date: Thu, 17 Nov 2011 08:43:42 -0300
Folks, Is it possible to call pcap_compile() more than once on the same libpcap descriptor (pcap_t *)? What I'm trying to do is caputuring some packets with a specific libpcap filter, and then reuse the same descriptor to capture packets with a *different* libpcap filter. (FWIW, in one of the calls to pcap_compile() I'm getting "snaplen of 0 rejects all packets"...) Thanks! Best regards, -- Fernando Gont e-mail: fernando () gont com ar || fgont () si6networks com PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1 - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Calling pcap_compile() more than once on the same pcap_t * Fernando Gont (Nov 27)
- Re: Calling pcap_compile() more than once on the same pcap_t * Guy Harris (Nov 29)