Lines Matching refs:ehp

1450 			struct bpf_hdr_ext *ehp;  in bpfread()  local
1455 ehp = (struct bpf_hdr_ext *)(void *)p; in bpfread()
1456 if ((flowid = ehp->bh_flowid) != 0) { in bpfread()
1457 if (ehp->bh_flags & BPF_HDR_EXT_FLAGS_TCP) { in bpfread()
1458 ehp->bh_flags &= ~BPF_HDR_EXT_FLAGS_TCP; in bpfread()
1461 } else if (ehp->bh_flags == BPF_HDR_EXT_FLAGS_UDP) { in bpfread()
1462 ehp->bh_flags &= ~BPF_HDR_EXT_FLAGS_UDP; in bpfread()
1467 ehp->bh_pid = soprocinfo.spi_pid; in bpfread()
1468 strbufcpy(ehp->bh_comm, in bpfread()
1471 ehp->bh_flowid = 0; in bpfread()
1474 if ((flags & BPF_FINALIZE_PKTAP) != 0 && ehp->bh_complen == 0) { in bpfread()
1478 (p + BPF_WORDALIGN(ehp->bh_hdrlen)); in bpfread()
1480 bpf_finalize_pktap((struct bpf_hdr *) ehp, in bpfread()
1483 p += BPF_WORDALIGN(ehp->bh_hdrlen + ehp->bh_caplen); in bpfread()
4031 struct bpf_hdr_ext *ehp; in catchpacket() local
4110 ehp = (struct bpf_hdr_ext *)(void *)(d->bd_sbuf + curlen); in catchpacket()
4111 memset(ehp, 0, sizeof(*ehp)); in catchpacket()
4112 ehp->bh_tstamp.tv_sec = (int)tv.tv_sec; in catchpacket()
4113 ehp->bh_tstamp.tv_usec = tv.tv_usec; in catchpacket()
4115 ehp->bh_datalen = (bpf_u_int32)pkt->bpfp_total_length; in catchpacket()
4116 ehp->bh_hdrlen = (u_short)hdrlen; in catchpacket()
4117 caplen = ehp->bh_caplen = totlen - hdrlen; in catchpacket()
4118 payload = (u_char *)ehp + hdrlen; in catchpacket()
4121 ehp->bh_flags |= BPF_HDR_EXT_FLAGS_DIR_OUT; in catchpacket()
4123 ehp->bh_flags |= BPF_HDR_EXT_FLAGS_DIR_IN; in catchpacket()
4130 ehp->bh_pktflags |= BPF_PKTFLAGS_ULPN; in catchpacket()
4139 ehp->bh_flowid = m->m_pkthdr.pkt_flowid; in catchpacket()
4141 ehp->bh_flags |= BPF_HDR_EXT_FLAGS_TCP; in catchpacket()
4143 ehp->bh_flags |= BPF_HDR_EXT_FLAGS_UDP; in catchpacket()
4146 ehp->bh_svc = so_svc2tc(m->m_pkthdr.pkt_svc); in catchpacket()
4148 ehp->bh_pktflags |= BPF_PKTFLAGS_TCP_REXMT; in catchpacket()
4151 ehp->bh_pktflags |= BPF_PKTFLAGS_START_SEQ; in catchpacket()
4154 ehp->bh_pktflags |= BPF_PKTFLAGS_LAST_PKT; in catchpacket()
4157 ehp->bh_unsent_bytes = in catchpacket()
4159 ehp->bh_unsent_snd = in catchpacket()
4162 ehp->bh_comp_gencnt = m->m_pkthdr.comp_gencnt; in catchpacket()
4165 ehp->bh_pktflags |= BPF_PKTFLAGS_WAKE_PKT; in catchpacket()
4174 ehp->bh_pktflags |= BPF_PKTFLAGS_ULPN; in catchpacket()
4182 ehp->bh_svc = so_svc2tc((mbuf_svc_class_t)kern_packet_get_service_class(kern_pkt)); in catchpacket()
4184 ehp->bh_pktflags |= BPF_PKTFLAGS_TCP_REXMT; in catchpacket()
4187 ehp->bh_pktflags |= BPF_PKTFLAGS_LAST_PKT; in catchpacket()
4189 kern_packet_get_compression_generation_count(kern_pkt, &ehp->bh_comp_gencnt); in catchpacket()
4192 ehp->bh_pktflags |= BPF_PKTFLAGS_WAKE_PKT; in catchpacket()
4195 ehp->bh_trace_tag = kern_packet_get_trace_tag(kern_pkt); in catchpacket()
4197 ehp->bh_flowid = flowid; in catchpacket()
4237 ehp->bh_complen = common_prefix_size; in catchpacket()
4239 ehp->bh_caplen -= common_prefix_size; in catchpacket()