aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/stroke_interface.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-07-05 13:13:07 +0000
committerMartin Willi <martin@strongswan.org>2006-07-05 13:13:07 +0000
commitd109b48968c8f05d0530500af2bcad1c414ac17e (patch)
tree4482b6b2e773fe4c80b3fab3fec5c145b1946c9c /src/charon/threads/stroke_interface.c
parent5f0eb96fc40042633aacdeab2deaf5ca3ffb6c1d (diff)
downloadstrongswan-d109b48968c8f05d0530500af2bcad1c414ac17e.tar.bz2
strongswan-d109b48968c8f05d0530500af2bcad1c414ac17e.tar.xz
added support for leftprotoport and rightprotoport
Diffstat (limited to 'src/charon/threads/stroke_interface.c')
-rwxr-xr-xsrc/charon/threads/stroke_interface.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/charon/threads/stroke_interface.c b/src/charon/threads/stroke_interface.c
index 4c0f80836..ae037666c 100755
--- a/src/charon/threads/stroke_interface.c
+++ b/src/charon/threads/stroke_interface.c
@@ -259,12 +259,14 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg)
goto destroy_ids;
}
- my_ts = traffic_selector_create_from_subnet(my_subnet, msg->add_conn.me.subnet ?
- msg->add_conn.me.subnet_mask : 32);
+ my_ts = traffic_selector_create_from_subnet(my_subnet,
+ msg->add_conn.me.subnet ? msg->add_conn.me.subnet_mask : 32,
+ msg->add_conn.me.protocol, msg->add_conn.me.port);
my_subnet->destroy(my_subnet);
- other_ts = traffic_selector_create_from_subnet(other_subnet, msg->add_conn.other.subnet ?
- msg->add_conn.other.subnet_mask : 32);
+ other_ts = traffic_selector_create_from_subnet(other_subnet,
+ msg->add_conn.other.subnet ? msg->add_conn.other.subnet_mask : 32,
+ msg->add_conn.other.protocol, msg->add_conn.other.port);
other_subnet->destroy(other_subnet);
if (msg->add_conn.me.ca)