Commit f3ce8351 authored by 's avatar

Modified mapi_stats to libpcap usual behavior (pcap_stats adds dropped packets...

Modified mapi_stats to libpcap usual behavior (pcap_stats adds dropped packets to received) to suppress differences between mapidagdrv and mapinicdrv.


git-svn-id: file:///home/svn/mapi/trunk@1379 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent b0c8ee5d
......@@ -1081,7 +1081,7 @@ mapidrv_stats (int devid, char **devtype, struct mapi_stat *stats)
if (i!=NULL)
{
stats->ps_recv=i->hwinfo.pkts;
stats->ps_recv=i->hwinfo.pkts + i->hwinfo.pkt_drop;
stats->ps_drop=i->hwinfo.pkt_drop;
stats->ps_ifdrop=0;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment