child-sa: Replace reqid based marks by "unique" marks
As we now use the same reqid for multiple CHILD_SAs with the same selectors, having marks based on the reqid makes not that much sense anymore. Instead we use unique marks that use a custom identifier. This identifier is reused during rekeying, keeping the marks constant for any rule relying on it (for example installed by updown). This also simplifies handling of reqid allocation, as we do not have to query the marks that is not yet assigned for an unknown reqid.
This commit is contained in:
@@ -169,9 +169,9 @@ struct mark_t {
|
||||
};
|
||||
|
||||
/**
|
||||
* Special mark value that uses the reqid of the CHILD_SA as mark
|
||||
* Special mark value that uses a unique mark for each CHILD_SA
|
||||
*/
|
||||
#define MARK_REQID (0xFFFFFFFF)
|
||||
#define MARK_UNIQUE (0xFFFFFFFF)
|
||||
|
||||
/**
|
||||
* Try to parse a mark_t from the given string of the form mark[/mask].
|
||||
|
||||
Reference in New Issue
Block a user