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; local
1442 (void) memset(&newstats, 0, sizeof (newstats));
1443 if (get_if_kstats(ifp, &newstats) == -1) {
1455 phyi->phyi_data = newstats;
1459 in = newstats.ipackets - phyi->phyi_data.ipackets;
1460 ierr = newstats.ierrors - phyi->phyi_data.ierrors;
1461 out = newstats.opackets - phyi->phyi_data.opackets;
1462 oerr = newstats.oerrors - phyi->phyi_data.oerrors;
1463 phyi->phyi_data = newstats;
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c182 struct ifstat *newstats, struct ifstat *sumstats);
2592 if_stat_total(struct ifstat *oldstats, struct ifstat *newstats, argument
2595 sumstats->ipackets += newstats->ipackets - oldstats->ipackets;
2596 sumstats->opackets += newstats->opackets - oldstats->opackets;
2597 sumstats->ierrors += newstats->ierrors - oldstats->ierrors;
2598 sumstats->oerrors += newstats->oerrors - oldstats->oerrors;
2599 sumstats->collisions += newstats->collisions - oldstats->collisions;

Completed in 1542 milliseconds