Searched refs:bpf_hdr (Results 1 – 5 of 5) sorted by relevance
276 …T_ASSERT_EQ(sizeof(struct bpf_hdr), BPF_WORDALIGN(sizeof(struct bpf_hdr)), "bpfhdr.bh_hdrlen == BP… in make_bootp_packet()278 struct bpf_hdr bpfhdr = {}; in make_bootp_packet()281 bpfhdr.bh_hdrlen = sizeof(struct bpf_hdr); in make_bootp_packet()317 struct bpf_hdr *h0 = (struct bpf_hdr *)iovs[i].iov_base;; in do_bpf_write_batch()365 T_ASSERT_GT((size_t)nread, sizeof(sizeof(struct bpf_hdr)), NULL); in do_bpf_write_batch()371 struct bpf_hdr *hp = (struct bpf_hdr *)(void *)bp; in do_bpf_write_batch()383 struct bpf_hdr *h0 = (struct bpf_hdr *)iovs[i].iov_base;; in do_bpf_write_batch()
299 T_ASSERT_GT((size_t)nread, sizeof(sizeof(struct bpf_hdr)), NULL); in do_bpf_write()304 struct bpf_hdr *hp = (struct bpf_hdr *)(void *)buffer; in do_bpf_write()
1447 struct bpf_hdr * bpf = (struct bpf_hdr *)(void *)offset; in switch_port_receive()
283 struct bpf_hdr { struct296 #define SIZEOF_BPF_HDR (sizeof(struct bpf_hdr) <= 20 ? 18 : \297 sizeof(struct bpf_hdr))
570 while ((resid = uio_resid(uio)) >= sizeof(struct bpf_hdr)) { in bpf_movein_batch()571 struct bpf_hdr bpfhdr = {}; in bpf_movein_batch()572 int bpf_hdr_min_len = offsetof(struct bpf_hdr, bh_hdrlen) + sizeof(bpfhdr.bh_hdrlen); in bpf_movein_batch()1204 bpf_finalize_pktap(struct bpf_hdr *hp, struct pktap_header *pktaphdr) in bpf_finalize_pktap()1464 bpf_finalize_pktap((struct bpf_hdr *) ehp, in bpfread()1475 struct bpf_hdr *hp; in bpfread()1478 hp = (struct bpf_hdr *)(void *)p; in bpfread()3938 struct bpf_hdr *hp; in catchpacket()4098 hp = (struct bpf_hdr *)(void *)(d->bd_sbuf + curlen); in catchpacket()4443 _CASSERT(BPF_WORDALIGN(sizeof(struct bpf_hdr)) == in bpf_init()