Lines Matching refs:kcunit
283 pkt_mnglr_ctl_disconnect(kern_ctl_ref kctlref, u_int32_t kcunit, void *unitinfo) in pkt_mnglr_ctl_disconnect() argument
295 if (kcunit > MAX_PACKET_MANGLER) { in pkt_mnglr_ctl_disconnect()
297 kcunit, MAX_PACKET_MANGLER); in pkt_mnglr_ctl_disconnect()
305 if (packet_manglers[kcunit - 1] != p_pkt_mnglr || p_pkt_mnglr->pkt_mnglr_kcunit != kcunit) { in pkt_mnglr_ctl_disconnect()
307 kcunit); in pkt_mnglr_ctl_disconnect()
315 packet_manglers[kcunit - 1] = NULL; in pkt_mnglr_ctl_disconnect()
325 error, pkt_mnglr_active_count, kcunit); in pkt_mnglr_ctl_disconnect()
331 pkt_mnglr_ctl_getopt(kern_ctl_ref kctlref, u_int32_t kcunit, void *unitinfo, in pkt_mnglr_ctl_getopt() argument
342 if (kcunit > MAX_PACKET_MANGLER) { in pkt_mnglr_ctl_getopt()
344 kcunit, MAX_PACKET_MANGLER); in pkt_mnglr_ctl_getopt()
348 if (p_pkt_mnglr != (void *)packet_manglers[kcunit - 1]) { in pkt_mnglr_ctl_getopt()
350 kcunit); in pkt_mnglr_ctl_getopt()
472 pkt_mnglr_ctl_setopt(kern_ctl_ref kctlref, u_int32_t kcunit, void *unitinfo, in pkt_mnglr_ctl_setopt() argument
483 if (kcunit > MAX_PACKET_MANGLER) { in pkt_mnglr_ctl_setopt()
485 kcunit, MAX_PACKET_MANGLER); in pkt_mnglr_ctl_setopt()
489 if (p_pkt_mnglr != (void *)packet_manglers[kcunit - 1]) { in pkt_mnglr_ctl_setopt()
491 kcunit); in pkt_mnglr_ctl_setopt()