We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc34ac5 commit fafab22Copy full SHA for fafab22
pcap-dpdk.c
@@ -473,10 +473,9 @@ static int pcap_dpdk_stats(pcap_t *p, struct pcap_stat *ps)
473
calculate_timestamp(&(pd->ts_helper), &(pd->curr_ts));
474
rte_eth_stats_get(pd->portid,&(pd->curr_stats));
475
if (ps){
476
- ps->ps_recv = pd->curr_stats.ipackets;
477
- ps->ps_drop = pd->curr_stats.ierrors;
478
- ps->ps_drop += pd->bpf_drop;
479
- ps->ps_ifdrop = pd->curr_stats.imissed;
+ ps->ps_recv = (u_int)pd->curr_stats.ipackets;
+ ps->ps_drop = (u_int)(pd->curr_stats.ierrors + pd->bpf_drop);
+ ps->ps_ifdrop = (u_int)pd->curr_stats.imissed;
480
}
481
uint64_t delta_pkt = pd->curr_stats.ipackets - pd->prev_stats.ipackets;
482
struct timeval delta_tm;
0 commit comments