Lines Matching refs:idbp
591 add_interface(pcap_t *p, struct interface_description_block *idbp, in add_interface() argument
701 ps->ifaces[ps->ifcount - 1].snaplen = idbp->snaplen; in add_interface()
782 struct interface_description_block *idbp; in pcap_ng_check_header() local
1018 idbp = get_from_block_data(&cursor, sizeof(*idbp), in pcap_ng_check_header()
1020 if (idbp == NULL) in pcap_ng_check_header()
1027 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_check_header()
1028 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_check_header()
1034 if (!add_interface(p, idbp, &cursor, errbuf)) in pcap_ng_check_header()
1060 p->linktype = linktype_to_dlt(idbp->linktype); in pcap_ng_check_header()
1061 p->snapshot = pcapint_adjust_snapshot(p->linktype, idbp->snaplen); in pcap_ng_check_header()
1109 struct interface_description_block *idbp; in pcap_ng_next_packet() local
1229 idbp = get_from_block_data(&cursor, sizeof(*idbp), in pcap_ng_next_packet()
1231 if (idbp == NULL) in pcap_ng_next_packet()
1238 idbp->linktype = SWAPSHORT(idbp->linktype); in pcap_ng_next_packet()
1239 idbp->snaplen = SWAPLONG(idbp->snaplen); in pcap_ng_next_packet()
1250 if (p->linktype != idbp->linktype) { in pcap_ng_next_packet()
1253 idbp->linktype); in pcap_ng_next_packet()
1262 pcapint_adjust_snapshot(p->linktype, idbp->snaplen)) { in pcap_ng_next_packet()
1265 idbp->snaplen); in pcap_ng_next_packet()
1272 if (!add_interface(p, idbp, &cursor, p->errbuf)) in pcap_ng_next_packet()