Lines Matching refs:espstack
104 #define esp1dbg(espstack, a) if (espstack->ipsecesp_debug != 0) printf a argument
105 #define esp2dbg(espstack, a) if (espstack->ipsecesp_debug > 1) printf a argument
106 #define esp3dbg(espstack, a) if (espstack->ipsecesp_debug > 2) printf a argument
164 esp_kstat_init(ipsecesp_stack_t *espstack, netstackid_t stackid) in esp_kstat_init() argument
166 espstack->esp_ksp = kstat_create_netstack("ipsecesp", 0, "esp_stat", in esp_kstat_init()
170 if (espstack->esp_ksp == NULL || espstack->esp_ksp->ks_data == NULL) in esp_kstat_init()
173 espstack->esp_kstats = espstack->esp_ksp->ks_data; in esp_kstat_init()
175 espstack->esp_ksp->ks_update = esp_kstat_update; in esp_kstat_init()
176 espstack->esp_ksp->ks_private = (void *)(uintptr_t)stackid; in esp_kstat_init()
179 #define KI(x) kstat_named_init(&(espstack->esp_kstats->esp_stat_##x), #x, K64) in esp_kstat_init()
202 kstat_install(espstack->esp_ksp); in esp_kstat_init()
304 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)arg; in esp_ager() local
305 netstack_t *ns = espstack->ipsecesp_netstack; in esp_ager()
308 sadb_ager(&espstack->esp_sadb.s_v4, espstack->esp_pfkey_q, in esp_ager()
309 espstack->ipsecesp_reap_delay, ns); in esp_ager()
310 sadb_ager(&espstack->esp_sadb.s_v6, espstack->esp_pfkey_q, in esp_ager()
311 espstack->ipsecesp_reap_delay, ns); in esp_ager()
313 espstack->esp_event = sadb_retimeout(begin, espstack->esp_pfkey_q, in esp_ager()
314 esp_ager, espstack, in esp_ager()
315 &espstack->ipsecesp_age_interval, espstack->ipsecesp_age_int_max, in esp_ager()
332 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)q->q_ptr; in ipsecesp_param_get() local
334 mutex_enter(&espstack->ipsecesp_param_lock); in ipsecesp_param_get()
336 mutex_exit(&espstack->ipsecesp_param_lock); in ipsecesp_param_get()
356 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)q->q_ptr; in ipsecesp_param_set() local
369 mutex_enter(&espstack->ipsecesp_param_lock); in ipsecesp_param_set()
371 mutex_exit(&espstack->ipsecesp_param_lock); in ipsecesp_param_set()
382 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in ipsecesp_fill_defs() local
384 ecomb->sadb_x_ecomb_soft_bytes = espstack->ipsecesp_default_soft_bytes; in ipsecesp_fill_defs()
385 ecomb->sadb_x_ecomb_hard_bytes = espstack->ipsecesp_default_hard_bytes; in ipsecesp_fill_defs()
387 espstack->ipsecesp_default_soft_addtime; in ipsecesp_fill_defs()
389 espstack->ipsecesp_default_hard_addtime; in ipsecesp_fill_defs()
391 espstack->ipsecesp_default_soft_usetime; in ipsecesp_fill_defs()
393 espstack->ipsecesp_default_hard_usetime; in ipsecesp_fill_defs()
444 ipsecesp_stack_t *espstack; in ipsecesp_stack_init() local
447 espstack = (ipsecesp_stack_t *)kmem_zalloc(sizeof (*espstack), in ipsecesp_stack_init()
449 espstack->ipsecesp_netstack = ns; in ipsecesp_stack_init()
452 espstack->ipsecesp_params = espp; in ipsecesp_stack_init()
455 (void) ipsecesp_param_register(&espstack->ipsecesp_g_nd, espp, in ipsecesp_stack_init()
458 (void) esp_kstat_init(espstack, stackid); in ipsecesp_stack_init()
460 espstack->esp_sadb.s_acquire_timeout = in ipsecesp_stack_init()
461 &espstack->ipsecesp_acquire_timeout; in ipsecesp_stack_init()
462 sadbp_init("ESP", &espstack->esp_sadb, SADB_SATYPE_ESP, esp_hash_size, in ipsecesp_stack_init()
463 espstack->ipsecesp_netstack); in ipsecesp_stack_init()
465 mutex_init(&espstack->ipsecesp_param_lock, NULL, MUTEX_DEFAULT, 0); in ipsecesp_stack_init()
467 ip_drop_register(&espstack->esp_dropper, "IPsec ESP"); in ipsecesp_stack_init()
468 return (espstack); in ipsecesp_stack_init()
487 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)arg; in ipsecesp_stack_fini() local
489 if (espstack->esp_pfkey_q != NULL) { in ipsecesp_stack_fini()
490 (void) quntimeout(espstack->esp_pfkey_q, espstack->esp_event); in ipsecesp_stack_fini()
492 espstack->esp_sadb.s_acquire_timeout = NULL; in ipsecesp_stack_fini()
493 sadbp_destroy(&espstack->esp_sadb, espstack->ipsecesp_netstack); in ipsecesp_stack_fini()
494 ip_drop_unregister(&espstack->esp_dropper); in ipsecesp_stack_fini()
495 mutex_destroy(&espstack->ipsecesp_param_lock); in ipsecesp_stack_fini()
496 nd_free(&espstack->ipsecesp_g_nd); in ipsecesp_stack_fini()
498 kmem_free(espstack->ipsecesp_params, sizeof (lcl_param_arr)); in ipsecesp_stack_fini()
499 espstack->ipsecesp_params = NULL; in ipsecesp_stack_fini()
500 kstat_delete_netstack(espstack->esp_ksp, stackid); in ipsecesp_stack_fini()
501 espstack->esp_ksp = NULL; in ipsecesp_stack_fini()
502 espstack->esp_kstats = NULL; in ipsecesp_stack_fini()
503 kmem_free(espstack, sizeof (*espstack)); in ipsecesp_stack_fini()
520 ipsecesp_stack_t *espstack; in ipsecesp_open() local
533 espstack = ns->netstack_ipsecesp; in ipsecesp_open()
534 ASSERT(espstack != NULL); in ipsecesp_open()
536 q->q_ptr = espstack; in ipsecesp_open()
550 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)q->q_ptr; in ipsecesp_close() local
559 if (q == espstack->esp_pfkey_q) { in ipsecesp_close()
560 esp1dbg(espstack, in ipsecesp_close()
562 espstack->esp_pfkey_q = NULL; in ipsecesp_close()
564 (void) quntimeout(q, espstack->esp_event); in ipsecesp_close()
567 netstack_rele(espstack->ipsecesp_netstack); in ipsecesp_close()
587 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_age_bytes() local
591 return (sadb_age_bytes(espstack->esp_pfkey_q, assoc, bytes, in esp_age_bytes()
608 sp = isv6 ? &espstack->esp_sadb.s_v6 : &espstack->esp_sadb.s_v4; in esp_age_bytes()
629 return (sadb_age_bytes(espstack->esp_pfkey_q, inassoc, in esp_age_bytes()
644 return (sadb_age_bytes(espstack->esp_pfkey_q, outassoc, in esp_age_bytes()
649 inrc = sadb_age_bytes(espstack->esp_pfkey_q, inassoc, bytes, B_TRUE); in esp_age_bytes()
650 outrc = sadb_age_bytes(espstack->esp_pfkey_q, outassoc, bytes, B_FALSE); in esp_age_bytes()
722 kstat_named_t **counter, ipsecesp_stack_t *espstack) in esp_strip_header() argument
730 ipsec_stack_t *ipss = espstack->ipsecesp_netstack->netstack_ipsec; in esp_strip_header()
776 ESP_BUMP_STAT(espstack, bad_decrypt); in esp_strip_header()
777 ipsec_rl_strlog(espstack->ipsecesp_netstack, in esp_strip_header()
781 esp1dbg(espstack, ("padlen (%d) is greater than:\n", in esp_strip_header()
783 esp1dbg(espstack, ("pkt len(%d) - ip hdr - esp " in esp_strip_header()
826 ESP_BUMP_STAT(espstack, bad_decrypt); in esp_strip_header()
827 ipsec_rl_strlog(espstack->ipsecesp_netstack, in esp_strip_header()
831 esp1dbg(espstack, ("padlen (%d) is greater than:\n", in esp_strip_header()
833 esp1dbg(espstack, in esp_strip_header()
853 if (espstack->ipsecesp_padding_check > 0 && padlen > 0) { in esp_strip_header()
861 ipsec_rl_strlog(espstack->ipsecesp_netstack, in esp_strip_header()
864 esp1dbg(espstack, in esp_strip_header()
867 ESP_BUMP_STAT(espstack, bad_padding); in esp_strip_header()
880 if (espstack->ipsecesp_padding_check > 1) { in esp_strip_header()
896 espstack->ipsecesp_netstack, in esp_strip_header()
900 esp1dbg(espstack, in esp_strip_header()
903 ESP_BUMP_STAT(espstack, bad_padding); in esp_strip_header()
961 esp2dbg(espstack, ("data_mp after inbound ESP adjustment:\n")); in esp_strip_header()
962 esp2dbg(espstack, (dump_msg(data_mp))); in esp_strip_header()
983 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_set_usetime() local
1003 sp = isv6 ? &espstack->esp_sadb.s_v6 : &espstack->esp_sadb.s_v4; in esp_set_usetime()
1072 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_inbound() local
1087 ESP_BUMP_STAT(espstack, replay_early_failures); in esp_inbound()
1091 &espstack->esp_dropper); in esp_inbound()
1120 esp_getspi(mblk_t *mp, keysock_in_t *ksi, ipsecesp_stack_t *espstack) in esp_getspi() argument
1133 cl_inet_getspi(espstack->ipsecesp_netstack->netstack_stackid, in esp_getspi()
1140 espstack->ipsecesp_netstack, IPPROTO_ESP); in esp_getspi()
1143 sadb_pfkey_error(espstack->esp_pfkey_q, mp, ENOMEM, diagnostic, in esp_getspi()
1147 sadb_pfkey_error(espstack->esp_pfkey_q, mp, EINVAL, diagnostic, in esp_getspi()
1159 outbound = OUTBOUND_BUCKET_V6(&espstack->esp_sadb.s_v6, in esp_getspi()
1161 inbound = INBOUND_BUCKET(&espstack->esp_sadb.s_v6, in esp_getspi()
1165 outbound = OUTBOUND_BUCKET_V4(&espstack->esp_sadb.s_v4, in esp_getspi()
1167 inbound = INBOUND_BUCKET(&espstack->esp_sadb.s_v4, in esp_getspi()
1206 espstack->ipsecesp_larval_timeout; in esp_getspi()
1218 sadb_pfkey_error(espstack->esp_pfkey_q, mp, rc, in esp_getspi()
1248 putnext(espstack->esp_pfkey_q, mp); in esp_getspi()
1257 ipsecesp_stack_t *espstack) in esp_insert_esp() argument
1274 esp1dbg(espstack, in esp_insert_esp()
1336 ipsecesp_stack_t *espstack = assoc->ipsa_netstack->netstack_ipsecesp; in esp_port_freshness() local
1359 bucket = OUTBOUND_BUCKET_V4(&(espstack->esp_sadb.s_v4), in esp_port_freshness()
1385 ESP_BUMP_STAT(espstack, sa_port_renumbers); in esp_port_freshness()
1408 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_in_done() local
1448 ESP_BUMP_STAT(espstack, good_auth); in esp_in_done()
1470 assoc->ipsa_addrfam, espstack->ipsecesp_netstack); in esp_in_done()
1471 ESP_BUMP_STAT(espstack, replay_failures); in esp_in_done()
1491 espstack->ipsecesp_netstack); in esp_in_done()
1492 ESP_BUMP_STAT(espstack, bytes_expired); in esp_in_done()
1503 ivlen, &counter, espstack)) { in esp_in_done()
1509 &espstack->esp_dropper); in esp_in_done()
1530 esp1dbg(espstack, ("esp_in_done: esp_strip_header() failed\n")); in esp_in_done()
1534 &espstack->esp_dropper); in esp_in_done()
1548 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_log_bad_auth() local
1555 ESP_BUMP_STAT(espstack, bad_auth); in esp_log_bad_auth()
1560 espstack->ipsecesp_netstack); in esp_log_bad_auth()
1565 &espstack->esp_dropper); in esp_log_bad_auth()
1618 ipsecesp_stack_t *espstack; in esp_kcf_callback_outbound() local
1652 espstack = ns->netstack_ipsecesp; in esp_kcf_callback_outbound()
1679 esp1dbg(espstack, in esp_kcf_callback_outbound()
1682 ESP_BUMP_STAT(espstack, crypto_failures); in esp_kcf_callback_outbound()
1683 ESP_BUMP_STAT(espstack, out_discards); in esp_kcf_callback_outbound()
1686 &espstack->esp_dropper); in esp_kcf_callback_outbound()
1704 ipsecesp_stack_t *espstack; in esp_kcf_callback_inbound() local
1732 espstack = ns->netstack_ipsecesp; in esp_kcf_callback_inbound()
1745 esp1dbg(espstack, in esp_kcf_callback_inbound()
1748 ESP_BUMP_STAT(espstack, crypto_failures); in esp_kcf_callback_inbound()
1752 &espstack->esp_dropper); in esp_kcf_callback_inbound()
1765 ill_t *ill, ipsecesp_stack_t *espstack) in esp_crypto_failed() argument
1767 ipsec_stack_t *ipss = espstack->ipsecesp_netstack->netstack_ipsec; in esp_crypto_failed()
1769 esp1dbg(espstack, ("crypto failed for %s ESP with 0x%x\n", in esp_crypto_failed()
1773 &espstack->esp_dropper); in esp_crypto_failed()
1774 ESP_BUMP_STAT(espstack, crypto_failures); in esp_crypto_failed()
1778 ESP_BUMP_STAT(espstack, out_discards); in esp_crypto_failed()
1844 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_submit_req_inbound() local
1877 DROPPER(ipss, ipds_esp_nomem), &espstack->esp_dropper); in esp_submit_req_inbound()
1972 ESP_BUMP_STAT(espstack, crypto_sync); in esp_submit_req_inbound()
1982 ESP_BUMP_STAT(espstack, crypto_async); in esp_submit_req_inbound()
1989 ESP_BUMP_STAT(espstack, crypto_sync); in esp_submit_req_inbound()
2001 esp_crypto_failed(esp_mp, B_TRUE, kef_rc, ira->ira_ill, espstack); in esp_submit_req_inbound()
2166 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_submit_req_outbound() local
2173 esp3dbg(espstack, ("esp_submit_req_outbound:%s", in esp_submit_req_outbound()
2207 DROPPER(ipss, ipds_esp_nomem), &espstack->esp_dropper); in esp_submit_req_outbound()
2332 ESP_BUMP_STAT(espstack, crypto_sync); in esp_submit_req_outbound()
2343 ESP_BUMP_STAT(espstack, crypto_async); in esp_submit_req_outbound()
2352 esp_crypto_failed(data_mp, B_FALSE, kef_rc, NULL, espstack); in esp_submit_req_outbound()
2381 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_outbound() local
2386 ESP_BUMP_STAT(espstack, out_requests); in esp_outbound()
2402 &espstack->esp_dropper); in esp_outbound()
2425 &espstack->esp_dropper); in esp_outbound()
2434 DROPPER(ipss, ipds_esp_nomem), &espstack->esp_dropper); in esp_outbound()
2539 &espstack->esp_dropper); in esp_outbound()
2548 ESP_BUMP_STAT(espstack, out_discards); in esp_outbound()
2549 esp1dbg(espstack, ("esp_outbound: can't allocate espmp.\n")); in esp_outbound()
2552 &espstack->esp_dropper); in esp_outbound()
2562 esp3dbg(espstack, ("esp_outbound: NATT")); in esp_outbound()
2589 espstack->ipsecesp_netstack); in esp_outbound()
2591 ESP_BUMP_STAT(espstack, out_discards); in esp_outbound()
2595 &espstack->esp_dropper); in esp_outbound()
2624 if (!update_iv((uint8_t *)iv_ptr, espstack->esp_pfkey_q, assoc, in esp_outbound()
2625 espstack)) { in esp_outbound()
2627 DROPPER(ipss, ipds_esp_iv_wrap), &espstack->esp_dropper); in esp_outbound()
2657 esp2dbg(espstack, ("data_mp before outbound ESP adjustment:\n")); in esp_outbound()
2658 esp2dbg(espstack, (dump_msg(data_mp))); in esp_outbound()
2660 if (!esp_insert_esp(data_mp, espmp, divpoint, espstack)) { in esp_outbound()
2661 ESP_BUMP_STAT(espstack, out_discards); in esp_outbound()
2665 &espstack->esp_dropper); in esp_outbound()
2679 ESP_BUMP_STAT(espstack, out_discards); in esp_outbound()
2683 &espstack->esp_dropper); in esp_outbound()
2703 esp2dbg(espstack, ("data_Mp before encryption:\n")); in esp_outbound()
2704 esp2dbg(espstack, (dump_msg(data_mp))); in esp_outbound()
2733 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in ipsecesp_icmp_error() local
2753 &espstack->esp_dropper); in ipsecesp_icmp_error()
2764 ipsecesp_stack_t *espstack, cred_t *cr) in esp_register_out() argument
2779 ipsec_stack_t *ipss = espstack->ipsecesp_netstack->netstack_ipsec; in esp_register_out()
2968 if (espstack->esp_pfkey_q != NULL) in esp_register_out()
2969 putnext(espstack->esp_pfkey_q, keysock_out_mp); in esp_register_out()
2986 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in ipsecesp_algs_changed() local
2992 (void) esp_register_out(0, 0, 0, espstack, NULL); in ipsecesp_algs_changed()
3029 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_inbound_restart() local
3031 esp2dbg(espstack, ("in ESP inbound_task")); in esp_inbound_restart()
3032 ASSERT(espstack != NULL); in esp_inbound_restart()
3060 int *diagnostic, ipsecesp_stack_t *espstack) in esp_add_sa_finish() argument
3072 ipsec_stack_t *ipss = espstack->ipsecesp_netstack->netstack_ipsec; in esp_add_sa_finish()
3077 sq.spp = &espstack->esp_sadb; /* XXX */ in esp_add_sa_finish()
3185 espstack->ipsecesp_netstack); in esp_add_sa_finish()
3219 rc = sadb_common_add(espstack->esp_pfkey_q, in esp_add_sa_finish()
3221 diagnostic, espstack->ipsecesp_netstack, &espstack->esp_sadb); in esp_add_sa_finish()
3260 ESP_BUMP_STAT(espstack, out_discards); in esp_add_sa_finish()
3263 &espstack->esp_dropper); in esp_add_sa_finish()
3266 ESP_BUMP_STAT(espstack, out_discards); in esp_add_sa_finish()
3269 &espstack->esp_dropper); in esp_add_sa_finish()
3288 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; in esp_outbound_finish() local
3293 ESP_BUMP_STAT(espstack, out_discards); in esp_outbound_finish()
3296 &espstack->esp_dropper); in esp_outbound_finish()
3344 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; local
3403 if (assoc->sadb_sa_flags & ~espstack->esp_sadb.s_addflags) {
3468 esp1dbg(espstack, ("Couldn't find auth alg #%d.\n",
3507 esp1dbg(espstack, ("Couldn't find encr alg #%d.\n",
3543 diagnostic, espstack));
3553 ipsecesp_stack_t *espstack, uint8_t sadb_msg_type) argument
3567 rcode = sadb_update_sa(mp, ksi, &buf_pkt, &espstack->esp_sadb,
3568 diagnostic, espstack->esp_pfkey_q, esp_add_sa,
3569 espstack->ipsecesp_netstack, sadb_msg_type);
3576 HANDLE_BUF_PKT(esp_taskq, espstack->ipsecesp_netstack->netstack_ipsec,
3577 espstack->esp_dropper, buf_pkt);
3589 ipsecesp_stack_t *espstack, uint8_t sadb_msg_type) argument
3608 (sin->sin_family == AF_INET6) ? &espstack->esp_sadb.s_v6 :
3609 &espstack->esp_sadb.s_v4, diagnostic,
3610 espstack->esp_pfkey_q));
3613 return (sadb_delget_sa(mp, ksi, &espstack->esp_sadb, diagnostic,
3614 espstack->esp_pfkey_q, sadb_msg_type));
3623 esp_dump(mblk_t *mp, keysock_in_t *ksi, ipsecesp_stack_t *espstack) argument
3632 error = sadb_dump(espstack->esp_pfkey_q, mp, ksi,
3633 &espstack->esp_sadb.s_v4);
3637 error = sadb_dump(espstack->esp_pfkey_q, mp, ksi,
3638 &espstack->esp_sadb.s_v6);
3643 sadb_pfkey_echo(espstack->esp_pfkey_q, mp,
3652 ipsecesp_stack_t *espstack) argument
3668 sadb_pfkey_error(espstack->esp_pfkey_q, mp, EINVAL, diagnostic,
3685 esp_parse_pfkey(mblk_t *mp, ipsecesp_stack_t *espstack) argument
3702 if (!sadb_addrfix(ksi, espstack->esp_pfkey_q, mp,
3703 espstack->ipsecesp_netstack) ||
3704 esp_pfkey_reality_failures(mp, ksi, espstack)) {
3711 espstack->ipsecesp_netstack);
3713 sadb_pfkey_error(espstack->esp_pfkey_q, mp, error,
3721 error = esp_del_sa(mp, ksi, &diagnostic, espstack,
3724 sadb_pfkey_error(espstack->esp_pfkey_q, mp, error,
3730 error = sadb_delget_sa(mp, ksi, &espstack->esp_sadb,
3731 &diagnostic, espstack->esp_pfkey_q, samsg->sadb_msg_type);
3733 sadb_pfkey_error(espstack->esp_pfkey_q, mp, error,
3739 sadbp_flush(&espstack->esp_sadb, espstack->ipsecesp_netstack);
3740 sadb_pfkey_echo(espstack->esp_pfkey_q, mp, samsg, ksi, NULL);
3751 ksi->ks_in_serial, espstack, msg_getcred(mp, NULL))) {
3759 sadb_pfkey_error(espstack->esp_pfkey_q, mp, ENOMEM,
3769 error = esp_update_sa(mp, ksi, &diagnostic, espstack,
3772 sadb_pfkey_error(espstack->esp_pfkey_q, mp, error,
3781 esp_getspi(mp, ksi, espstack);
3789 sadb_in_acquire(samsg, &espstack->esp_sadb,
3790 espstack->esp_pfkey_q, espstack->ipsecesp_netstack);
3797 esp_dump(mp, ksi, espstack);
3802 sadb_pfkey_error(espstack->esp_pfkey_q, mp, EOPNOTSUPP,
3806 sadb_pfkey_error(espstack->esp_pfkey_q, mp, EINVAL,
3817 esp_keysock_no_socket(mblk_t *mp, ipsecesp_stack_t *espstack) argument
3838 sadb_in_acquire(samsg, &espstack->esp_sadb,
3839 WR(espstack->esp_pfkey_q), espstack->ipsecesp_netstack);
3863 ipsecesp_stack_t *espstack = (ipsecesp_stack_t *)q->q_ptr; local
3865 esp3dbg(espstack, ("In esp_wput().\n"));
3879 esp1dbg(espstack, ("Got KEYSOCK_OUT_ERR message.\n"));
3880 esp_keysock_no_socket(mp, espstack);
3883 ESP_BUMP_STAT(espstack, keysock_in);
3884 esp3dbg(espstack, ("Got KEYSOCK_IN message.\n"));
3887 esp_parse_pfkey(mp, espstack);
3890 sadb_keysock_hello(&espstack->esp_pfkey_q, q, mp,
3891 esp_ager, (void *)espstack, &espstack->esp_event,
3895 esp2dbg(espstack, ("Got M_CTL from above of 0x%x.\n",
3906 if (nd_getset(q, espstack->ipsecesp_g_nd, mp)) {
3925 esp3dbg(espstack,
3942 ipsecesp_stack_t *espstack = ns->netstack_ipsecesp; local
3945 if (espstack->ipsecesp_log_unknown_spi) {
3947 addr, af, espstack->ipsecesp_netstack);
3952 &espstack->esp_dropper);