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

/freebsd-10.1-release/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c189 struct bpf_hdr* bpfh = (struct bpf_hdr*) buf; local
196 *len -= bpfh->bh_hdrlen;
198 if (bpfh->bh_caplen != *len) {
199 assert(bpfh->bh_caplen < *len);
200 *len = bpfh->bh_caplen;
202 assert(bpfh->bh_caplen == *len);
206 ((char*)bpfh + bpfh->bh_hdrlen);
/freebsd-10.1-release/tools/tools/net80211/stumbler/
H A Dstumbler.c848 struct bpf_hdr* bpfh; local
855 bpfh = (struct bpf_hdr*) buf;
856 rd -= bpfh->bh_hdrlen;
858 if (rd != bpfh->bh_caplen) {
859 assert( rd > bpfh->bh_caplen);
860 rd = bpfh->bh_caplen;
863 data = (unsigned char*) bpfh + bpfh->bh_hdrlen;
/freebsd-10.1-release/tools/tools/net80211/wlaninject/
H A Dwlaninject.c470 struct bpf_hdr *bpfh = got; local
479 glen -= bpfh->bh_hdrlen;
481 if (bpfh->bh_caplen != glen) {
485 ((char*) bpfh + bpfh->bh_hdrlen);
/freebsd-10.1-release/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2298 struct bpf_hdr *bpfh; local
2308 bpfh = (struct bpf_hdr*) (*data);
2309 assert(bpfh->bh_caplen == bpfh->bh_datalen); /* XXX */
2310 *totlen -= bpfh->bh_hdrlen;
2313 if ((int)bpfh->bh_caplen < *totlen) {
2314 int tot = bpfh->bh_hdrlen + bpfh->bh_caplen;
2317 *data = (char*)bpfh + offset;
2319 } else if ((int)bpfh
[all...]

Completed in 53 milliseconds