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()
205 struct bpf_hdr { struct218 #define SIZEOF_BPF_HDR (sizeof(struct bpf_hdr) <= 20 ? 18 : \219 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()1219 bpf_finalize_pktap(struct bpf_hdr *hp, struct pktap_header *pktaphdr) in bpf_finalize_pktap()1480 bpf_finalize_pktap((struct bpf_hdr *) ehp, in bpfread()1491 struct bpf_hdr *hp; in bpfread()1494 hp = (struct bpf_hdr *)(void *)p; in bpfread()4030 struct bpf_hdr *hp; in catchpacket()4202 hp = (struct bpf_hdr *)(void *)(d->bd_sbuf + curlen); in catchpacket()4547 static_assert(BPF_WORDALIGN(sizeof(struct bpf_hdr)) == BPF_WORDALIGN(sizeof(struct bpf_comp_hdr))); in bpf_init()