Lines Matching refs:ipsr

1194 	ipsec_req_t	*ipsr;  in set_tun_algs()  local
1204 ipsr = &params.iptun_param_secinfo; in set_tun_algs()
1212 (void) memset(ipsr, 0, sizeof (*ipsr)); in set_tun_algs()
1220 if (ipsr->ipsr_esp_auth_alg == SADB_AALG_NONE) in set_tun_algs()
1221 ipsr->ipsr_esp_req = 0; in set_tun_algs()
1222 ipsr->ipsr_esp_alg = SADB_EALG_NONE; in set_tun_algs()
1225 if (ipsr->ipsr_esp_auth_alg != SADB_AALG_NONE) { in set_tun_algs()
1227 ipsr->ipsr_esp_alg = SADB_EALG_NULL; in set_tun_algs()
1231 ipsr->ipsr_esp_req = in set_tun_algs()
1233 ipsr->ipsr_esp_alg = alg; in set_tun_algs()
1238 if ((ipsr->ipsr_esp_alg == SADB_EALG_NONE || in set_tun_algs()
1239 ipsr->ipsr_esp_alg == SADB_EALG_NULL) && in set_tun_algs()
1241 ipsr->ipsr_esp_req = 0; in set_tun_algs()
1242 ipsr->ipsr_esp_auth_alg = SADB_AALG_NONE; in set_tun_algs()
1244 ipsr->ipsr_esp_req = in set_tun_algs()
1246 ipsr->ipsr_esp_auth_alg = alg; in set_tun_algs()
1249 if (ipsr->ipsr_esp_alg == SADB_EALG_NONE && in set_tun_algs()
1251 ipsr->ipsr_esp_alg = SADB_EALG_NULL; in set_tun_algs()
1256 ipsr->ipsr_ah_req = 0; in set_tun_algs()
1257 ipsr->ipsr_auth_alg = SADB_AALG_NONE; in set_tun_algs()
1259 ipsr->ipsr_ah_req = in set_tun_algs()
1261 ipsr->ipsr_auth_alg = alg; in set_tun_algs()
1274 if ((ipsr->ipsr_esp_req != 0 && in set_tun_algs()
1275 ipsr->ipsr_esp_auth_alg != SADB_AALG_NONE) || in set_tun_algs()
1276 (ipsr->ipsr_ah_req != 0 && in set_tun_algs()
1277 ipsr->ipsr_auth_alg != SADB_AALG_NONE)) in set_tun_algs()
3130 ipsec_req_t *ipsr; in print_tsec() local
3136 ipsr = &params->iptun_param_secinfo; in print_tsec()
3137 if (ipsr->ipsr_ah_req & IPSEC_PREF_REQUIRED) { in print_tsec()
3139 rparsealg(ipsr->ipsr_auth_alg, IPSEC_PROTO_AH)); in print_tsec()
3141 if (ipsr->ipsr_esp_req & IPSEC_PREF_REQUIRED) { in print_tsec()
3143 rparsealg(ipsr->ipsr_esp_alg, IPSEC_PROTO_ESP)); in print_tsec()
3145 rparsealg(ipsr->ipsr_esp_auth_alg, IPSEC_PROTO_AH)); in print_tsec()