using "left" as my host per default, swapping to "right" when needed
authorMartin Willi <martin@strongswan.org>
Thu, 15 Feb 2007 12:13:18 +0000 (12:13 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 15 Feb 2007 12:13:18 +0000 (12:13 -0000)
src/charon/threads/stroke_interface.c
src/starter/starterstroke.c

index 3767dc0..63770cf 100755 (executable)
@@ -182,16 +182,16 @@ static void stroke_add_conn(stroke_msg_t *msg, FILE *out)
        DBG1(DBG_CFG, "received stroke: add connection '%s'", msg->add_conn.name);
        
        DBG2(DBG_CFG, "conn %s", msg->add_conn.name);
        DBG1(DBG_CFG, "received stroke: add connection '%s'", msg->add_conn.name);
        
        DBG2(DBG_CFG, "conn %s", msg->add_conn.name);
-       DBG2(DBG_CFG, "  right=%s", msg->add_conn.me.address);
-       DBG2(DBG_CFG, "  left=%s", msg->add_conn.other.address);
-       DBG2(DBG_CFG, "  rightsubnet=%s", msg->add_conn.me.subnet);
-       DBG2(DBG_CFG, "  leftsubnet=%s", msg->add_conn.other.subnet);
-       DBG2(DBG_CFG, "  rightid=%s", msg->add_conn.me.id);
-       DBG2(DBG_CFG, "  leftid=%s", msg->add_conn.other.id);
-       DBG2(DBG_CFG, "  rightcert=%s", msg->add_conn.me.cert);
-       DBG2(DBG_CFG, "  leftcert=%s", msg->add_conn.other.cert);
-       DBG2(DBG_CFG, "  rightca=%s", msg->add_conn.me.ca);
-       DBG2(DBG_CFG, "  leftca=%s", msg->add_conn.other.ca);
+       DBG2(DBG_CFG, "  left=%s", msg->add_conn.me.address);
+       DBG2(DBG_CFG, "  right=%s", msg->add_conn.other.address);
+       DBG2(DBG_CFG, "  leftsubnet=%s", msg->add_conn.me.subnet);
+       DBG2(DBG_CFG, "  rightsubnet=%s", msg->add_conn.other.subnet);
+       DBG2(DBG_CFG, "  leftid=%s", msg->add_conn.me.id);
+       DBG2(DBG_CFG, "  rightid=%s", msg->add_conn.other.id);
+       DBG2(DBG_CFG, "  leftcert=%s", msg->add_conn.me.cert);
+       DBG2(DBG_CFG, "  rightcert=%s", msg->add_conn.other.cert);
+       DBG2(DBG_CFG, "  leftca=%s", msg->add_conn.me.ca);
+       DBG2(DBG_CFG, "  rightca=%s", msg->add_conn.other.ca);
        DBG2(DBG_CFG, "  ike=%s", msg->add_conn.algorithms.ike);
        DBG2(DBG_CFG, "  esp=%s", msg->add_conn.algorithms.esp);
        
        DBG2(DBG_CFG, "  ike=%s", msg->add_conn.algorithms.ike);
        DBG2(DBG_CFG, "  esp=%s", msg->add_conn.algorithms.esp);
        
index a1987cb..6239d0e 100644 (file)
@@ -227,8 +227,8 @@ int starter_stroke_add_conn(starter_conn_t *conn)
        msg.add_conn.dpd.delay = conn->dpd_delay;
        msg.add_conn.dpd.action = conn->dpd_action;
 
        msg.add_conn.dpd.delay = conn->dpd_delay;
        msg.add_conn.dpd.action = conn->dpd_action;
 
-       starter_stroke_add_end(&msg, &msg.add_conn.me, &conn->right);
-       starter_stroke_add_end(&msg, &msg.add_conn.other, &conn->left);
+       starter_stroke_add_end(&msg, &msg.add_conn.me, &conn->left);
+       starter_stroke_add_end(&msg, &msg.add_conn.other, &conn->right);
 
        return send_stroke_msg(&msg);
 }
 
        return send_stroke_msg(&msg);
 }