strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b6a14
)
libipsec: Add support for new policy priority class
author
Tobias Brunner
<tobias@strongswan.org>
Tue, 13 May 2014 10:20:02 +0000
(12:20 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Thu, 19 Jun 2014 12:20:33 +0000
(14:20 +0200)
src/libipsec/ipsec_policy_mgr.c
patch
|
blob
|
history
diff --git
a/src/libipsec/ipsec_policy_mgr.c
b/src/libipsec/ipsec_policy_mgr.c
index
02dc59d
..
e2eaba0
100644
(file)
--- a/
src/libipsec/ipsec_policy_mgr.c
+++ b/
src/libipsec/ipsec_policy_mgr.c
@@
-22,7
+22,7
@@
#include <collections/linked_list.h>
/** Base priority for installed policies */
-#define PRIO_BASE
512
+#define PRIO_BASE
384
typedef struct private_ipsec_policy_mgr_t private_ipsec_policy_mgr_t;
@@
-88,6
+88,9
@@
static u_int32_t calculate_priority(policy_priority_t policy_priority,
priority <<= 1;
/* fall-through */
case POLICY_PRIORITY_DEFAULT:
+ priority <<= 1;
+ /* fall-through */
+ case POLICY_PRIORITY_PASS:
break;
}
/* calculate priority based on selector size, small size = high prio */