Home
last modified time | relevance | path

Searched refs:newstats (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c1047 struct phyi_data newstats; in ifscan() local
1442 (void) memset(&newstats, 0, sizeof (newstats)); in ifscan()
1443 if (get_if_kstats(ifp, &newstats) == -1) { in ifscan()
1455 phyi->phyi_data = newstats; in ifscan()
1459 in = newstats.ipackets - phyi->phyi_data.ipackets; in ifscan()
1460 ierr = newstats.ierrors - phyi->phyi_data.ierrors; in ifscan()
1461 out = newstats.opackets - phyi->phyi_data.opackets; in ifscan()
1462 oerr = newstats.oerrors - phyi->phyi_data.oerrors; in ifscan()
1463 phyi->phyi_data = newstats; in ifscan()
1471 newstats.ts == 0) { in ifscan()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c183 struct ifstat *newstats, struct ifstat *sumstats);
2991 if_stat_total(struct ifstat *oldstats, struct ifstat *newstats, in if_stat_total() argument
2994 sumstats->ipackets += newstats->ipackets - oldstats->ipackets; in if_stat_total()
2995 sumstats->opackets += newstats->opackets - oldstats->opackets; in if_stat_total()
2996 sumstats->ierrors += newstats->ierrors - oldstats->ierrors; in if_stat_total()
2997 sumstats->oerrors += newstats->oerrors - oldstats->oerrors; in if_stat_total()
2998 sumstats->collisions += newstats->collisions - oldstats->collisions; in if_stat_total()