Lines Matching refs:policy
77 #include "policy.h"
87 #include "policy.h"
1384 /* generate a policy template from peer's proposal */
2116 * set policies into SPD if the policy is generated
2117 * from peer's policy.
2127 /* make inbound policy */
2140 /* make forward policy if required */
2153 /* make outbound policy */
2407 * Then get remote's policy from SPD copied from kernel.
2462 /* get a destination address of a policy */
2472 * a destination address to search for a inbound policy entry
2496 * of the key to search the SPD because the direction of policy
2609 /* get inbound policy */
2611 if (sp_in == NULL || sp_in->policy == IPSEC_POLICY_GENERATE) {
2615 "Update the generated policy : %s\n",
2619 "no policy found, "
2620 "try to generate the policy : %s\n",
2632 "no policy found: %s\n", spidx2str(&spidx));
2637 /* get outbound policy */
2653 "no outbound policy found: %s\n",
2671 * In the responder side, the inbound policy should be using IPsec.
2672 * outbound policy is not checked currently.
2674 if (sp_in->policy != IPSEC_POLICY_IPSEC) {
2676 "policy found, but no IPsec required: %s\n",
2681 /* set new proposal derived from a policy into the iph2->proposal. */