Lines Matching refs:ifaces
227 struct pcap_ng_if *ifaces; /* array of interface information */ member
625 new_ifaces = realloc(ps->ifaces, new_ifaces_size * sizeof (struct pcap_ng_if)); in add_interface()
638 ps->ifaces = new_ifaces; in add_interface()
656 ps->ifaces[ps->ifcount - 1].tsresol = tsresol; in add_interface()
657 ps->ifaces[ps->ifcount - 1].tsoffset = tsoffset; in add_interface()
668 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH; in add_interface()
675 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN_BIN; in add_interface()
680 ps->ifaces[ps->ifcount - 1].scale_factor = tsresol/ps->user_tsresol; in add_interface()
681 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN_DEC; in add_interface()
689 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP_BIN; in add_interface()
694 ps->ifaces[ps->ifcount - 1].scale_factor = ps->user_tsresol/tsresol; in add_interface()
695 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP_DEC; in add_interface()
998 free(ps->ifaces); in pcap_ng_check_header()
1010 free(ps->ifaces); in pcap_ng_cleanup()
1291 sec = t / ps->ifaces[interface_id].tsresol + ps->ifaces[interface_id].tsoffset; in pcap_ng_next_packet()
1292 frac = t % ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1298 switch (ps->ifaces[interface_id].scale_type) { in pcap_ng_next_packet()
1321 frac *= ps->ifaces[interface_id].scale_factor; in pcap_ng_next_packet()
1345 frac /= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1364 frac /= ps->ifaces[interface_id].scale_factor; in pcap_ng_next_packet()
1392 frac /= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()