libipsec: Add support for new policy priority class
This commit is contained in:
parent
77b6a145a0
commit
5b883719a1
|
@ -22,7 +22,7 @@
|
||||||
#include <collections/linked_list.h>
|
#include <collections/linked_list.h>
|
||||||
|
|
||||||
/** Base priority for installed policies */
|
/** 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;
|
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;
|
priority <<= 1;
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
case POLICY_PRIORITY_DEFAULT:
|
case POLICY_PRIORITY_DEFAULT:
|
||||||
|
priority <<= 1;
|
||||||
|
/* fall-through */
|
||||||
|
case POLICY_PRIORITY_PASS:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* calculate priority based on selector size, small size = high prio */
|
/* calculate priority based on selector size, small size = high prio */
|
||||||
|
|
Loading…
Reference in New Issue