Lines Matching refs:ip4_def_policy
128 struct secpolicy ip4_def_policy;
145 &ip4_def_policy.policy, 0, &sysctl_def_policy, "I", "");
253 int old_policy = ip4_def_policy.policy;
256 if (ip4_def_policy.policy != IPSEC_POLICY_NONE &&
257 ip4_def_policy.policy != IPSEC_POLICY_DISCARD) {
258 ip4_def_policy.policy = old_policy;
263 if (ipsec_bypass != 0 && ip4_def_policy.policy != IPSEC_POLICY_NONE)
385 if (ip4_def_policy.policy != IPSEC_POLICY_DISCARD
386 && ip4_def_policy.policy != IPSEC_POLICY_NONE) {
389 ip4_def_policy.policy, IPSEC_POLICY_NONE));
390 ip4_def_policy.policy = IPSEC_POLICY_NONE;
392 ip4_def_policy.refcnt++;
396 return &ip4_def_policy;
442 if (ip4_def_policy.policy != IPSEC_POLICY_DISCARD
443 && ip4_def_policy.policy != IPSEC_POLICY_NONE) {
446 ip4_def_policy.policy, IPSEC_POLICY_NONE));
447 ip4_def_policy.policy = IPSEC_POLICY_NONE;
449 ip4_def_policy.refcnt++;
453 return &ip4_def_policy;
531 if (ip4_def_policy.policy != IPSEC_POLICY_DISCARD
532 && ip4_def_policy.policy != IPSEC_POLICY_NONE) {
534 ip4_def_policy.policy,
536 ip4_def_policy.policy = IPSEC_POLICY_NONE;
538 ip4_def_policy.refcnt++;
542 return &ip4_def_policy;