Return 0 for the ps_ifdrop value, rather than leaving it with whatever
random data it might have.
This commit is contained in:
parent
2032d35228
commit
1d47ee92c3
|
@ -744,6 +744,7 @@ pcap_stats_bpf(pcap_t *p, struct pcap_stat *ps)
|
|||
|
||||
ps->ps_recv = s.bs_recv;
|
||||
ps->ps_drop = s.bs_drop;
|
||||
ps->ps_ifdrop = 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue