Re: [tcpdump-workers] parent-child process, selectable file descriptor and pcap

2013-04-18 Thread Guy Harris
On Apr 17, 2013, at 7:10 PM, wen lui wrote: > I have a program, part of the source codes are: > >handle = pcap_open_live(dev, BUFSIZ, 0, 0, errbuf); >pcap_compile(handle, &fp, filter_exp, 0, mask) == -1 >pcap_setfilter(handle, &fp); >struct pcap_pkthdr pcap_heade

[tcpdump-workers] parent-child process, selectable file descriptor and pcap

2013-04-17 Thread wen lui
I have a program, part of the source codes are: handle = pcap_open_live(dev, BUFSIZ, 0, 0, errbuf); pcap_compile(handle, &fp, filter_exp, 0, mask) == -1 pcap_setfilter(handle, &fp); struct pcap_pkthdr pcap_header; // The header that pcap gives us const