aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/stroke/stroke_config.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-02-22 18:11:42 +0100
committerMartin Willi <martin@revosec.ch>2010-02-26 11:44:33 +0100
commit4e18490ea8bbd13b2f49c4be385744fc453f1cfc (patch)
tree17ca79e630cc62f3601652b388672aeda9a92ac7 /src/charon/plugins/stroke/stroke_config.c
parentdeac3a0a5da9fd293ae63ac6eb36662c43fdb1e3 (diff)
downloadstrongswan-4e18490ea8bbd13b2f49c4be385744fc453f1cfc.tar.bz2
strongswan-4e18490ea8bbd13b2f49c4be385744fc453f1cfc.tar.xz
Store custom IKE src/dst ports on ike_cfg
Diffstat (limited to 'src/charon/plugins/stroke/stroke_config.c')
-rw-r--r--src/charon/plugins/stroke/stroke_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charon/plugins/stroke/stroke_config.c b/src/charon/plugins/stroke/stroke_config.c
index 0752f3c93..bfb39008e 100644
--- a/src/charon/plugins/stroke/stroke_config.c
+++ b/src/charon/plugins/stroke/stroke_config.c
@@ -233,8 +233,8 @@ static ike_cfg_t *build_ike_cfg(private_stroke_config_t *this, stroke_msg_t *msg
}
ike_cfg = ike_cfg_create(msg->add_conn.other.sendcert != CERT_NEVER_SEND,
msg->add_conn.force_encap,
- msg->add_conn.me.address,
- msg->add_conn.other.address);
+ msg->add_conn.me.address, IKEV2_UDP_PORT,
+ msg->add_conn.other.address, IKEV2_UDP_PORT);
add_proposals(this, msg->add_conn.algorithms.ike, ike_cfg, NULL);
return ike_cfg;
}
@@ -697,7 +697,7 @@ static void add_ts(private_stroke_config_t *this,
if (!end->subnets)
{
- net = host_create_from_string(end->address, IKEV2_UDP_PORT);
+ net = host_create_from_string(end->address, 0);
if (net)
{
ts = traffic_selector_create_from_subnet(net, 0, end->protocol,
@@ -726,7 +726,7 @@ static void add_ts(private_stroke_config_t *this,
intbits = atoi(bits + 1);
}
- net = host_create_from_string(start, IKEV2_UDP_PORT);
+ net = host_create_from_string(start, 0);
if (net)
{
ts = traffic_selector_create_from_subnet(net, intbits,