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
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