diff options
author | Martin Willi <martin@revosec.ch> | 2013-03-01 11:27:12 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-03-01 11:27:12 +0100 |
commit | a36b49f3cb941869127bccd0a30fd1ff4905dc82 (patch) | |
tree | 090178e3ed9770feedde5d52a5eb53b930c15c97 /src/libcharon/plugins/unity | |
parent | 53fcc70acc553c7f44c43d452ee73b5ac7c1b484 (diff) | |
parent | b443fa61231357a4c09f0bfed22be05727427cda (diff) | |
download | strongswan-a36b49f3cb941869127bccd0a30fd1ff4905dc82.tar.bz2 strongswan-a36b49f3cb941869127bccd0a30fd1ff4905dc82.tar.xz |
Merge branch 'opaque-ports'
Adds a %opaque port option and support for port ranges in left/rightprotoport.
Currently not supported by any of our kernel backends.
Diffstat (limited to 'src/libcharon/plugins/unity')
-rw-r--r-- | src/libcharon/plugins/unity/unity_handler.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcharon/plugins/unity/unity_handler.c b/src/libcharon/plugins/unity/unity_handler.c index 31d13add2..39dd5f096 100644 --- a/src/libcharon/plugins/unity/unity_handler.c +++ b/src/libcharon/plugins/unity/unity_handler.c @@ -192,7 +192,8 @@ static job_requeue_t add_exclude_async(entry_t *entry) { has_vip = TRUE; child_cfg->add_traffic_selector(child_cfg, TRUE, - traffic_selector_create_from_subnet(host->clone(host), 32, 0, 0)); + traffic_selector_create_from_subnet(host->clone(host), + 32, 0, 0, 65535)); } enumerator->destroy(enumerator); @@ -200,7 +201,8 @@ static job_requeue_t add_exclude_async(entry_t *entry) { host = ike_sa->get_my_host(ike_sa); child_cfg->add_traffic_selector(child_cfg, TRUE, - traffic_selector_create_from_subnet(host->clone(host), 32, 0, 0)); + traffic_selector_create_from_subnet(host->clone(host), 32, 0, + 0, 65535)); } charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa); |