Lines Matching defs:state
215 u_int state;
218 for (state = 0; state < SADB_SASTATE_MAX; state++) {
219 for (sav = LIST_FIRST(&(*sah)->savtree[state]);
223 if (sav->state == SADB_SASTATE_LARVAL ||
224 sav->state == SADB_SASTATE_DEAD) {
388 u_int state;
392 for (state = 0; state < SADB_SASTATE_MAX; state++) {
393 for (sav = LIST_FIRST(&(*sah)->savtree[state]);
397 if (sav->state == SADB_SASTATE_LARVAL ||
398 sav->state == SADB_SASTATE_DYING ||
399 sav->state == SADB_SASTATE_DEAD) {
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;
709 crypto_keys->state.u.ipsec.proto == IPPROTO_ESP &&
711 sav->state == SADB_SASTATE_MATURE) {
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);