Home
last modified time | relevance | path

Searched refs:bpfh (Results 1 – 4 of 4) sorted by relevance

/freebsd/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c187 struct bpf_hdr* bpfh = (struct bpf_hdr*) buf; in get_wifi() local
194 *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()
/freebsd/tools/tools/net80211/stumbler/
H A Dstumbler.c846 struct bpf_hdr* bpfh; in bpf_input() local
853 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()
/freebsd/tools/tools/net80211/wlaninject/
H A Dwlaninject.c468 struct bpf_hdr *bpfh = got; in do_verify() local
477 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()
/freebsd/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2297 struct bpf_hdr *bpfh; in get_80211() local
2307 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 …]