Lines Matching defs:inject
185 * The taskq eventq_queue_in is used to process the upside inject messages.
186 * The taskq eventq_queue_out is used to process the downside inject messages.
194 * Initialize queues for inject.
228 * Destroy inject queues
250 * Register IPv4 and IPv6 netinfo functions and initialize queues for inject.
928 * Shared implementation to inject a packet to or from an interface
940 injection_t *inject;
949 inject = kmem_alloc(sizeof (*inject), KM_NOSLEEP);
950 if (inject == NULL)
952 inject->inj_data = *packet;
953 inject->inj_isv6 = isv6;
963 inject = kmem_alloc(sizeof (*inject), KM_NOSLEEP);
964 if (inject == NULL)
966 inject->inj_data = *packet;
967 inject->inj_isv6 = isv6;
1008 inject->inj_ptr = ipst;
1009 if (ddi_taskq_dispatch(tq, func, (void *)inject,
1458 ip_ni_queue_in_func(void *inject)
1460 ip_ni_queue_func_impl(inject, B_FALSE);
1468 ip_ni_queue_out_func(void *inject)
1470 ip_ni_queue_func_impl(inject, B_TRUE);
1474 * Shared implementation for inject via ip_output and ip_input
1477 ip_ni_queue_func_impl(injection_t *inject, boolean_t out)
1481 ip_stack_t *ipst = (ip_stack_t *)inject->inj_ptr;
1484 ASSERT(inject != NULL);
1485 packet = &inject->inj_data;
1490 inject->inj_isv6, ipst);
1493 kmem_free(inject, sizeof (*inject));
1497 if (inject->inj_isv6) {
1507 if (inject->inj_isv6) {
1517 kmem_free(inject, sizeof (*inject));