Commit 2c91bfe3 authored by 's avatar

mapi_stats implementation for mapidagdrv


git-svn-id: file:///home/svn/mapi/trunk@1259 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 927fb7fe
......@@ -942,4 +942,24 @@ int dagdsm_build_bpffilter(boolean_t check_only, char *new_filter_string, mapid_
return rc_err;
}
int
mapidrv_stats (int devid, char **devtype, struct mapi_stat *stats)
{
dag_instance_t *i=flist_get(devlist,devid);
*devtype=MAPI_DEVICE_DAG;
if (i!=NULL)
{
stats->ps_recv=i->hwinfo.pkts;
stats->ps_drop=i->hwinfo.pkt_drop;
stats->ps_ifdrop=0;
return 0;
}
return MAPI_STATS_ERROR;
}
#endif
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