phyi_data
} phyi_data;
struct phyi_data newstats;
now.tv_sec > (ifp->int_phys->phyi_data.ts +
ifp->int_phys->phyi_data.ts);
now.tv_sec < phyi->phyi_data.ts +
if (phyi->phyi_data.ts == 0) {
phyi->phyi_data = newstats;
in = newstats.ipackets - phyi->phyi_data.ipackets;
ierr = newstats.ierrors - phyi->phyi_data.ierrors;
out = newstats.opackets - phyi->phyi_data.opackets;
oerr = newstats.oerrors - phyi->phyi_data.oerrors;
phyi->phyi_data = newstats;
get_if_kstats(ifp, &ifp->int_phys->phyi_data) == -1) {
get_if_kstats(struct interface *ifp, struct phyi_data *newdata)
if (phyi->phyi_data.ts == now.tv_sec) {
if (newdata != &phyi->phyi_data)
*newdata = phyi->phyi_data;
ifp->int_phys->phyi_data.ts = 0;
static int get_if_kstats(struct interface *, struct phyi_data *);