Searched refs:bpfh (Results 1 – 4 of 4) sorted by relevance
187 struct bpf_hdr* bpfh = (struct bpf_hdr*) buf; in get_wifi() local194 *len -= bpfh->bh_hdrlen; in get_wifi()196 if (bpfh->bh_caplen != *len) { in get_wifi()197 assert(bpfh->bh_caplen < *len); in get_wifi()198 *len = bpfh->bh_caplen; in get_wifi()200 assert(bpfh->bh_caplen == *len); in get_wifi()204 ((char*)bpfh + bpfh->bh_hdrlen); in get_wifi()
846 struct bpf_hdr* bpfh; in bpf_input() local853 bpfh = (struct bpf_hdr*) buf; in bpf_input()854 rd -= bpfh->bh_hdrlen; in bpf_input()856 if (rd != bpfh->bh_caplen) { in bpf_input()857 assert( rd > bpfh->bh_caplen); in bpf_input()858 rd = bpfh->bh_caplen; in bpf_input()861 data = (unsigned char*) bpfh + bpfh->bh_hdrlen; in bpf_input()
468 struct bpf_hdr *bpfh = got; in do_verify() local477 glen -= bpfh->bh_hdrlen; in do_verify()479 if (bpfh->bh_caplen != glen) { in do_verify()483 ((char*) bpfh + bpfh->bh_hdrlen); in do_verify()
2297 struct bpf_hdr *bpfh; in get_80211() local2307 bpfh = (struct bpf_hdr*) (*data); in get_80211()2308 assert(bpfh->bh_caplen == bpfh->bh_datalen); /* XXX */ in get_80211()2309 *totlen -= bpfh->bh_hdrlen; in get_80211()2312 if ((int)bpfh->bh_caplen < *totlen) { in get_80211()2313 int tot = bpfh->bh_hdrlen + bpfh->bh_caplen; in get_80211()2316 *data = (char*)bpfh + offset; in get_80211()2318 } else if ((int)bpfh->bh_caplen > *totlen) in get_80211()2321 *plen = bpfh->bh_caplen; in get_80211()2322 *totlen -= bpfh->bh_caplen; in get_80211()[all …]