+pktap_finalize_proc_info(struct pktap_header *hdr)
+{
+ int found;
+ struct so_procinfo soprocinfo;
+
+ if (!(hdr->pth_flags & PTH_FLAG_DELAY_PKTAP))
+ return;
+
+ /*
+ * Clear the flag as it's internal
+ */
+ hdr->pth_flags &= ~PTH_FLAG_DELAY_PKTAP;
+
+ if (hdr->pth_ipproto == IPPROTO_TCP)
+ found = inp_findinpcb_procinfo(&tcbinfo, hdr->pth_flowid,
+ &soprocinfo);
+ else if (hdr->pth_ipproto == IPPROTO_UDP)
+ found = inp_findinpcb_procinfo(&udbinfo, hdr->pth_flowid,
+ &soprocinfo);
+ else
+ found = inp_findinpcb_procinfo(&ripcbinfo, hdr->pth_flowid,
+ &soprocinfo);
+
+ if (found == 1)
+ pktap_set_procinfo(hdr, &soprocinfo);
+}
+
+__private_extern__ void
+pktap_fill_proc_info(struct pktap_header *hdr, protocol_family_t proto,