Lines Matching defs:hdr
594 struct pktap_header hdr;
597 struct pktap_header *hdr = &hdr_buffer.hdr;
604 bzero(hdr, sizeof(hdr_buffer));
605 hdr->pth_length = sizeof(struct pktap_header);
606 hdr->pth_type_next = PTH_TYPE_PACKET;
607 hdr->pth_dlt = DLT_NULL;
609 snprintf(hdr->pth_ifname, sizeof(hdr->pth_ifname), "%s",
612 hdr->pth_flags = outgoing ? PTH_FLAG_DIR_OUT : PTH_FLAG_DIR_IN;
613 hdr->pth_protocol_family = proto;
614 hdr->pth_frame_pre_length = 0;
615 hdr->pth_frame_post_length = 0;
616 hdr->pth_iftype = ifp != NULL ? ifp->if_type : 0;
617 hdr->pth_ifunit = ifp != NULL ? ifp->if_unit : 0;
619 pktap_fill_proc_info(hdr, proto, m, 0, outgoing, ifp);
621 hdr->pth_svc = so_svc2tc(m->m_pkthdr.pkt_svc);
623 bpf_tap_func(iptap->iptap_ifp, DLT_PKTAP, m, hdr, hdr_size);