Advertisement
kaspyx

Untitled

Mar 31st, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. int res;
  2. struct pcap_pkthdr *header;
  3. const unsigned char *pkt_data;
  4. while((res=pcap_next_ex(fp, &header,&pkt_data))>=0){
  5.     if (res==0) continue;
  6.     /* blah~~ */
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement