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: [email protected] || [email protected]
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.

Reply via email to