Home
last modified time | relevance | path

Searched refs:pcap_status (Results 1 – 3 of 3) sorted by relevance

/dports/net-mgmt/bpft/bpft/trafd/
H A Dtraffic.c407 struct pcap_stat pcap_status={0,0,0}; local
469 { if( pcap_stats(pd, &pcap_status) ){
472 }else if( pcap_status.ps_drop ){
477 device_name, pcap_status.ps_recv, pcap_status.ps_drop,
482 device_name, pcap_status.ps_recv, pcap_status.ps_drop,
485 }else if( !pcap_status.ps_drop ){
489 device_name, pcap_status.ps_recv, ess_entry, msg, fname,
494 device_name, pcap_status.ps_recv, ess_entry, msg, fname );
H A Dmain.c382 { struct pcap_stat pcap_status={0,0,0}; in check_stats() local
384 if( pcap_stats(pd, &pcap_status) ) in check_stats()
387 else if( pcap_status.ps_ifdrop ) in check_stats()
389 pcap_status.ps_ifdrop, device_name ); in check_stats()
/dports/security/nmap/nmap-7.91/libnetutil/
H A Dnetutil.cc4212 int pcap_status = 0; in read_reply_pcap() local
4223 pcap_status = pcap_next_ex(pd, head, p); in read_reply_pcap()
4228 if (pcap_status == PCAP_ERROR) { in read_reply_pcap()
4233 if (pcap_status == 0 || *p == NULL) { in read_reply_pcap()
4238 pcap_status = pcap_next_ex(pd, head, p); in read_reply_pcap()
4241 if (pcap_status == PCAP_ERROR) { in read_reply_pcap()
4246 if (pcap_status == 1 && *p != NULL && accept_callback(*p, *head, *datalink, *offset)) { in read_reply_pcap()
4248 } else if (pcap_status == 0 || *p == NULL) { in read_reply_pcap()