Lines Matching refs:ipsec
47 #include <netinet6/ipsec.h>
494 crypto_keys->state.u.ipsec.proto = sah->saidx.proto;
495 crypto_keys->state.u.ipsec.mode = sah->saidx.mode;
497 crypto_keys->state.u.ipsec.ifamily = IPPROTO_IPV4;
499 crypto_keys->state.u.ipsec.ifamily = IPPROTO_IPV6;
501 crypto_keys->state.u.ipsec.spi = args_ipsec_v1->spi;
628 * Summary: enables ipsec crypto info for the specified utun.
635 /* Turn off the ipsec bypass, if already on */
646 * Summary: disables ipsec crypto info for the specified utun.
653 /* Turn on the ipsec bypass, if there are no other policies */
709 crypto_keys->state.u.ipsec.proto == IPPROTO_ESP &&
720 if ((proto == AF_UTUN || proto == AF_INET) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV4) {
822 } else if ((proto == AF_UTUN || proto == AF_INET6) && crypto_keys->state.u.ipsec.ifamily == IPPROTO_IPV6) {
931 proto, crypto_keys->state.u.ipsec.ifamily);