Lines Matching refs:ifaces
230 struct pcap_ng_if *ifaces; /* array of interface information */
620 * ps->ifaces_size == 0 if ps->ifaces == NULL,
683 new_ifaces = realloc(ps->ifaces, new_ifaces_size * sizeof (struct pcap_ng_if));
696 ps->ifaces = new_ifaces;
714 ps->ifaces[ps->ifcount - 1].tsresol = tsresol;
715 ps->ifaces[ps->ifcount - 1].tsoffset = tsoffset;
726 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH;
733 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN_BIN;
738 ps->ifaces[ps->ifcount - 1].scale_factor = tsresol/ps->user_tsresol;
739 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN_DEC;
747 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP_BIN;
752 ps->ifaces[ps->ifcount - 1].scale_factor = ps->user_tsresol/tsresol;
753 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP_DEC;
1061 free(ps->ifaces);
1073 free(ps->ifaces);
1367 sec = t / ps->ifaces[interface_id].tsresol + ps->ifaces[interface_id].tsoffset;
1368 frac = t % ps->ifaces[interface_id].tsresol;
1374 switch (ps->ifaces[interface_id].scale_type) {
1397 frac *= ps->ifaces[interface_id].scale_factor;
1421 frac /= ps->ifaces[interface_id].tsresol;
1440 frac /= ps->ifaces[interface_id].scale_factor;
1468 frac /= ps->ifaces[interface_id].tsresol;