Re: [tcpdump-workers] Stopping packet capture on a libpcap descriptor

2011-11-30 Thread Guy Harris
On Nov 30, 2011, at 2:40 AM, Fernando Gont wrote: > Could you suggest a good reference for BPF syntax? -- So far I've only > used pcap_compile() and hence didn't really get into BPF. Well, for reference purposes, there's the original BPF paper: http://www.tcpdump.org/papers/bpf-usenix93

Re: [tcpdump-workers] Stopping packet capture on a libpcap descriptor

2011-11-30 Thread Fernando Gont
On 11/28/2011 02:49 PM, Guy Harris wrote: >> 1. Captures and sends some packets 2. Does something else 3. >> Captures and sends some packets >> >> I'd like to use the same libpcap descriptor (pcap_t *) for both >> Step 1 and step 2 above, but I don't want want libpcap to continue >> capturing pack

Re: [tcpdump-workers] Stopping packet capture on a libpcap descriptor

2011-11-29 Thread Guy Harris
On Nov 17, 2011, at 2:22 AM, Fernando Gont wrote: > Basically, I have a program that does this: > > 1. Captures and sends some packets > 2. Does something else > 3. Captures and sends some packets > > I'd like to use the same libpcap descriptor (pcap_t *) for both Step 1 > and step 2 above, but

[tcpdump-workers] Stopping packet capture on a libpcap descriptor

2011-11-27 Thread Fernando Gont
Folks, Is there a recommended way to momentarily stop packet capture on a libpcap descriptor? Basically, I have a program that does this: 1. Captures and sends some packets 2. Does something else 3. Captures and sends some packets I'd like to use the same libpcap descriptor (pcap_t *) for both