Install fallback drop policies to avoid transmitting unencrypted packets.
During the update of a CHILD_SA (e.g. caused by MOBIKE) the old policy is first uninstalled and then the new one is installed. In the short time in between, where no policy is available in the kernel, unencrypted packets could have been transmitted.
This commit is contained in:
@@ -575,6 +575,9 @@ static inline u_int32_t get_priority(policy_entry_t *policy,
|
||||
u_int32_t priority = PRIO_BASE;
|
||||
switch (prio)
|
||||
{
|
||||
case POLICY_PRIORITY_FALLBACK:
|
||||
priority <<= 1;
|
||||
/* fall-through */
|
||||
case POLICY_PRIORITY_ROUTED:
|
||||
priority <<= 1;
|
||||
/* fall-through */
|
||||
|
||||
@@ -509,6 +509,9 @@ static inline u_int32_t get_priority(policy_entry_t *policy,
|
||||
u_int32_t priority = PRIO_BASE;
|
||||
switch (prio)
|
||||
{
|
||||
case POLICY_PRIORITY_FALLBACK:
|
||||
priority <<= 1;
|
||||
/* fall-through */
|
||||
case POLICY_PRIORITY_ROUTED:
|
||||
priority <<= 1;
|
||||
/* fall-through */
|
||||
|
||||
Reference in New Issue
Block a user