Searched refs:pktap (Results 1 – 5 of 5) sorted by relevance
104 SYSCTL_NODE(_net_link, IFT_PKTAP, pktap,232 struct pktap_softc *__single pktap = NULL; in pktap_clone_create() local237 pktap = kalloc_type(struct pktap_softc, Z_WAITOK_ZERO_NOFAIL); in pktap_clone_create()238 pktap->pktp_unit = unit; in pktap_clone_create()243 pktap->pktp_filters[0].filter_op = PKTAP_FILTER_OP_PASS; in pktap_clone_create()244 pktap->pktp_filters[0].filter_param = PKTAP_FILTER_PARAM_IF_TYPE; in pktap_clone_create()245 pktap->pktp_filters[0].filter_param_if_type = IFT_ETHER; in pktap_clone_create()248 pktap->pktp_filters[1].filter_op = PKTAP_FILTER_OP_PASS; in pktap_clone_create()249 pktap->pktp_filters[1].filter_param = PKTAP_FILTER_PARAM_IF_TYPE; in pktap_clone_create()250 pktap->pktp_filters[1].filter_param_if_type = IFT_CELLULAR; in pktap_clone_create()[all …]
3916 struct pktap_header *pktap = (struct pktap_header *) (pkt->bpfp_header); in get_pkt_trunc_len() local3926 assert3u(pkt->bpfp_header_length, >=, pktap->pth_length); in get_pkt_trunc_len()3929 assert3u(pkt->bpfp_total_length, >=, pktap->pth_length + pktap->pth_frame_pre_length); in get_pkt_trunc_len()3943 pre_adjust = (uint32_t)(pkt->bpfp_header_length - pktap->pth_length); in get_pkt_trunc_len()3945 if (pktap->pth_iftype == IFT_ETHER) { in get_pkt_trunc_len()3950 in_pkt_len = (uint32_t)(pkt->bpfp_total_length - pktap->pth_length - pre_adjust); in get_pkt_trunc_len()3954 tlen = pktap->pth_length + pre_adjust + out_pkt_len; in get_pkt_trunc_len()3964 off = pktap->pth_frame_pre_length - pre_adjust; in get_pkt_trunc_len()3966 in_pkt_len = (uint32_t)(pkt->bpfp_total_length - pktap->pth_length - pktap->pth_frame_pre_length); in get_pkt_trunc_len()3968 if (pktap->pth_protocol_family == AF_INET) { in get_pkt_trunc_len()[all …]
92 pktap.h \
128 pktap.o_CWARNFLAGS_ADD += -Wno-address-of-packed-member
220 bsd/net/pktap.c optional networking bound-checks