mirror of https://gitee.com/openkylin/linux.git
xfrm: clone mark when cloning policy
When we clone the SP, we should also clone the mark. Useful for socket based SPs. Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10886af54a
commit
fb977e2ca6
|
@ -1154,6 +1154,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir)
|
|||
}
|
||||
newp->lft = old->lft;
|
||||
newp->curlft = old->curlft;
|
||||
newp->mark = old->mark;
|
||||
newp->action = old->action;
|
||||
newp->flags = old->flags;
|
||||
newp->xfrm_nr = old->xfrm_nr;
|
||||
|
|
Loading…
Reference in New Issue