Searched refs:bpf_hdr (Results 1 – 5 of 5) sorted by relevance
256 …T_ASSERT_EQ(sizeof(struct bpf_hdr), BPF_WORDALIGN(sizeof(struct bpf_hdr)), "bpfhdr.bh_hdrlen == BP… in make_bootp_packet()258 struct bpf_hdr bpfhdr = { 0 }; in make_bootp_packet()261 bpfhdr.bh_hdrlen = sizeof(struct bpf_hdr); in make_bootp_packet()297 struct bpf_hdr *h0 = (struct bpf_hdr *)iovs[i].iov_base;; in do_bpf_write_batch()345 T_ASSERT_GT((size_t)nread, sizeof(sizeof(struct bpf_hdr)), NULL); in do_bpf_write_batch()351 struct bpf_hdr *hp = (struct bpf_hdr *)(void *)bp; in do_bpf_write_batch()363 struct bpf_hdr *h0 = (struct bpf_hdr *)iovs[i].iov_base;; in do_bpf_write_batch()
280 T_ASSERT_GT((size_t)nread, sizeof(sizeof(struct bpf_hdr)), NULL); in do_bpf_write()285 struct bpf_hdr *hp = (struct bpf_hdr *)(void *)buffer; in do_bpf_write()
1124 struct bpf_hdr * bpf = (struct bpf_hdr *)(void *)offset; in switch_port_receive()
287 struct bpf_hdr { struct300 #define SIZEOF_BPF_HDR (sizeof(struct bpf_hdr) <= 20 ? 18 : \301 sizeof(struct bpf_hdr))
569 while ((resid = uio_resid(uio)) >= sizeof(struct bpf_hdr)) { in bpf_movein_batch()570 struct bpf_hdr bpfhdr = {}; in bpf_movein_batch()571 int bpf_hdr_min_len = offsetof(struct bpf_hdr, bh_hdrlen) + sizeof(bpfhdr.bh_hdrlen); in bpf_movein_batch()1217 bpf_finalize_pktap(struct bpf_hdr *hp, struct pktap_header *pktaphdr) in bpf_finalize_pktap()1478 bpf_finalize_pktap((struct bpf_hdr *) ehp, in bpfread()1489 struct bpf_hdr *hp; in bpfread()1492 hp = (struct bpf_hdr *)(void *)p; in bpfread()4027 struct bpf_hdr *hp; in catchpacket()4189 hp = (struct bpf_hdr *)(void *)(d->bd_sbuf + curlen); in catchpacket()4534 _CASSERT(BPF_WORDALIGN(sizeof(struct bpf_hdr)) == in bpf_init()