added hostaccess support
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 25 Sep 2006 06:10:28 +0000 (06:10 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 25 Sep 2006 06:10:28 +0000 (06:10 -0000)
src/charon/sa/ike_sa.c

index f829986..2a8633b 100644 (file)
@@ -478,7 +478,7 @@ static void dpd_detected(private_ike_sa_t *this)
                
                this->logger->log(this->logger, CONTROL, "dpd action for %s is %s", 
                                                  policy->get_name(policy),
-                                                 mapping_find(dpd_action_m, action));
+                                                 enum_name(&dpd_action_names, action));
                
                switch (action)
                {
@@ -1196,10 +1196,12 @@ static status_t route(private_ike_sa_t *this, connection_t *connection, policy_t
                        /* deny */
                        return FAILED;
        }
-       
+
        child_sa = child_sa_create(0, this->my_host, this->other_host,
                                                           this->my_id, this->other_id,
-                                                          0, 0, NULL, FALSE);
+                                                          0, 0,
+                                                          NULL, policy->get_hostaccess(policy),
+                                                          FALSE);
        child_sa->set_name(child_sa, policy->get_name(policy));
        my_ts = policy->get_my_traffic_selectors(policy, this->my_host);
        other_ts = policy->get_other_traffic_selectors(policy, this->other_host);