Home
last modified time | relevance | path

Searched refs:BPF_WORDALIGN (Results 1 – 3 of 3) sorted by relevance

/xnu-8792.41.9/bsd/net/
H A Dbpf.c1250 (p + BPF_WORDALIGN(ehp->bh_hdrlen)); in bpfread()
1255 p += BPF_WORDALIGN(ehp->bh_hdrlen + ehp->bh_caplen); in bpfread()
1278 p += BPF_WORDALIGN(hcp->bh_hdrlen + hcp->bh_caplen); in bpfread()
1284 (p + BPF_WORDALIGN(hp->bh_hdrlen)); in bpfread()
1288 p += BPF_WORDALIGN(hp->bh_hdrlen + hp->bh_caplen); in bpfread()
3632 curlen = BPF_WORDALIGN(d->bd_slen); in catchpacket()
3764 memset(hp, 0, BPF_WORDALIGN(sizeof(*hp))); in catchpacket()
4025 bp_new->bif_hdrlen = BPF_WORDALIGN(hdrlen + SIZEOF_BPF_HDR) - hdrlen; in bpf_attach()
4026 bp_new->bif_exthdrlen = BPF_WORDALIGN(hdrlen + in bpf_attach()
4028 bp_new->bif_comphdrlen = BPF_WORDALIGN(hdrlen + in bpf_attach()
[all …]
H A Dbpf.h136 #define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1)) macro
/xnu-8792.41.9/tests/
H A Dnet_bridge.c1719 skip = BPF_WORDALIGN(pkt_len + bpf->bh_hdrlen); in switch_port_receive()