Lines Matching refs:ifaces
223 struct pcap_ng_if *ifaces; /* array of interface information */ member
541 if (ps->ifaces == NULL) { in add_interface()
546 ps->ifaces = malloc(sizeof (struct pcap_ng_if)); in add_interface()
553 ps->ifaces = realloc(ps->ifaces, ps->ifaces_size * sizeof (struct pcap_ng_if)); in add_interface()
555 if (ps->ifaces == NULL) { in add_interface()
580 ps->ifaces[ps->ifcount - 1].tsresol = tsresol; in add_interface()
581 ps->ifaces[ps->ifcount - 1].tsoffset = tsoffset; in add_interface()
595 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH; in add_interface()
602 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN; in add_interface()
609 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP; in add_interface()
619 ps->ifaces[ps->ifcount - 1].scale_type = PASS_THROUGH; in add_interface()
626 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_DOWN; in add_interface()
633 ps->ifaces[ps->ifcount - 1].scale_type = SCALE_UP; in add_interface()
923 free(ps->ifaces); in pcap_ng_check_header()
935 free(ps->ifaces); in pcap_ng_cleanup()
1215 sec = t / ps->ifaces[interface_id].tsresol + ps->ifaces[interface_id].tsoffset; in pcap_ng_next_packet()
1216 frac = t % ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1217 switch (ps->ifaces[interface_id].scale_type) { in pcap_ng_next_packet()
1240 frac *= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1259 frac /= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()