Lines Matching refs:bhp
1182 #define bhp ((struct bpf_xhdr *)bp) in pcap_read_bpf() macro
1184 #define bhp ((struct bpf_hdr *)bp) in pcap_read_bpf() macro
1228 caplen = bhp->bh_caplen; in pcap_read_bpf()
1229 hdrlen = bhp->bh_hdrlen; in pcap_read_bpf()
1245 pcap_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) { in pcap_read_bpf()
1250 bt.sec = bhp->bh_tstamp.bt_sec; in pcap_read_bpf()
1251 bt.frac = bhp->bh_tstamp.bt_frac; in pcap_read_bpf()
1266 pkthdr.ts.tv_sec = bhp->bh_tstamp.tv_sec; in pcap_read_bpf()
1272 pkthdr.ts.tv_usec = bhp->bh_tstamp.tv_usec/1000; in pcap_read_bpf()
1274 pkthdr.ts.tv_usec = bhp->bh_tstamp.tv_usec; in pcap_read_bpf()
1282 if (bhp->bh_datalen > pad) in pcap_read_bpf()
1283 pkthdr.len = bhp->bh_datalen - pad; in pcap_read_bpf()
1289 pkthdr.len = bhp->bh_datalen; in pcap_read_bpf()
1310 #undef bhp in pcap_read_bpf()