aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/shunt_manager.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2016-03-24 18:35:27 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2016-04-09 16:51:01 +0200
commit7f57c4f9fbf3bdd559af054795bdbf2dfaa9b810 (patch)
tree610437ec3b355c4c2c0e715f4c574361603c947d /src/libcharon/sa/shunt_manager.c
parent2ba5dadb12dd95c9ba5ff99e619fb33388582661 (diff)
downloadstrongswan-7f57c4f9fbf3bdd559af054795bdbf2dfaa9b810.tar.bz2
strongswan-7f57c4f9fbf3bdd559af054795bdbf2dfaa9b810.tar.xz
Support manually-set IPsec policy priorities
Diffstat (limited to 'src/libcharon/sa/shunt_manager.c')
-rw-r--r--src/libcharon/sa/shunt_manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/sa/shunt_manager.c b/src/libcharon/sa/shunt_manager.c
index 36af86bae..b74b454ea 100644
--- a/src/libcharon/sa/shunt_manager.c
+++ b/src/libcharon/sa/shunt_manager.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2015-2016 Tobias Brunner
- * Copyright (C) 2011 Andreas Steffen
+ * Copyright (C) 2011-2016 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -119,6 +119,7 @@ static bool install_shunt_policy(child_cfg_t *child)
kernel_ipsec_manage_policy_t policy = {
.type = policy_type,
.prio = policy_prio,
+ .manual_prio = child->get_manual_prio(child),
.src = host_any,
.dst = host_any,
.sa = &sa,
@@ -265,6 +266,7 @@ static void uninstall_shunt_policy(child_cfg_t *child)
kernel_ipsec_manage_policy_t policy = {
.type = policy_type,
.prio = policy_prio,
+ .manual_prio = child->get_manual_prio(child),
.src = host_any,
.dst = host_any,
.sa = &sa,