Home
last modified time | relevance | path

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

/xnu-8796.121.2/bsd/net/
H A Dbpf.c1263 (p + BPF_WORDALIGN(ehp->bh_hdrlen)); in bpfread()
1268 p += BPF_WORDALIGN(ehp->bh_hdrlen + ehp->bh_caplen); in bpfread()
1291 p += BPF_WORDALIGN(hcp->bh_hdrlen + hcp->bh_caplen); in bpfread()
1297 (p + BPF_WORDALIGN(hp->bh_hdrlen)); in bpfread()
1301 p += BPF_WORDALIGN(hp->bh_hdrlen + hp->bh_caplen); in bpfread()
3645 curlen = BPF_WORDALIGN(d->bd_slen); in catchpacket()
3777 memset(hp, 0, BPF_WORDALIGN(sizeof(*hp))); in catchpacket()
4038 bp_new->bif_hdrlen = BPF_WORDALIGN(hdrlen + SIZEOF_BPF_HDR) - hdrlen; in bpf_attach()
4039 bp_new->bif_exthdrlen = BPF_WORDALIGN(hdrlen + in bpf_attach()
4041 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-8796.121.2/tests/
H A Dnet_bridge.c1719 skip = BPF_WORDALIGN(pkt_len + bpf->bh_hdrlen); in switch_port_receive()