kernel-netlink: Add support for new policy priority class
This commit is contained in:
@@ -70,8 +70,8 @@
|
||||
#define SOL_UDP IPPROTO_UDP
|
||||
#endif
|
||||
|
||||
/** Default priority of installed policies */
|
||||
#define PRIO_BASE 512
|
||||
/** Base priority for installed policies */
|
||||
#define PRIO_BASE 384
|
||||
|
||||
/** Default lifetime of an acquire XFRM state (in seconds) */
|
||||
#define DEFAULT_ACQUIRE_LIFETIME 165
|
||||
@@ -606,6 +606,9 @@ static inline u_int32_t get_priority(policy_entry_t *policy,
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user