Lines Matching refs:ifaces
250 struct pcap_ng_if *ifaces; /* array of interface information */
580 if (ps->ifaces == NULL) {
585 ps->ifaces = malloc(sizeof (struct pcap_ng_if));
592 ps->ifaces = realloc(ps->ifaces, ps->ifaces_size * sizeof (struct pcap_ng_if));
594 if (ps->ifaces == NULL) {
619 ps->ifaces[ps->ifcount - 1].tsresol = tsresol;
620 ps->ifaces[ps->ifcount - 1].tsoffset = tsoffset;
634 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH;
641 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN;
648 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP;
658 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH;
665 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN;
672 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP;
981 free(ps->ifaces);
993 free(ps->ifaces);
1288 sec = t / ps->ifaces[interface_id].tsresol + ps->ifaces[interface_id].tsoffset;
1289 frac = t % ps->ifaces[interface_id].tsresol;
1290 switch (ps->ifaces[interface_id].scale_type) {
1304 * XXX - if ps->ifaces[interface_id].tsresol is a power
1306 * ps->ifaces[interface_id].tsresol and ps->user_tsresol,
1311 * ps->ifaces[interface_id].tsresol is a power of 2?
1313 frac *= ps->ifaces[interface_id].tsresol;
1322 * XXX - if ps->ifaces[interface_id].tsresol is a power
1324 * ps->user_tsresol and ps->ifaces[interface_id].tsresol,
1329 * ps->ifaces[interface_id].tsresol is a power of 2?
1332 frac /= ps->ifaces[interface_id].tsresol;