ike: Treat action_t as flags so 'start' and 'trap' can be combined
While combining the actions could cause duplicates (while the SA is initiated, traffic might trigger the trap and the initiation of another CHILD_SA), the previous commit should avoid most duplicates. If reuse_ikesa is disabled, duplicates can't be prevented, though.
This commit is contained in:
@@ -1042,9 +1042,9 @@ static action_t map_action(int starter_action)
|
||||
switch (starter_action)
|
||||
{
|
||||
case 2: /* =hold */
|
||||
return ACTION_ROUTE;
|
||||
return ACTION_TRAP;
|
||||
case 3: /* =restart */
|
||||
return ACTION_RESTART;
|
||||
return ACTION_START;
|
||||
default:
|
||||
return ACTION_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user