Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int res;
- struct pcap_pkthdr *header;
- const unsigned char *pkt_data;
- while((res=pcap_next_ex(fp, &header,&pkt_data))>=0){
- if (res==0) continue;
- /* blah~~ */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement