[IPSEC] Use XFRM_MSG_* instead of XFRM_SAP_*
This patch removes XFRM_SAP_* and converts them over to XFRM_MSG_*. The netlink interface is meant to map directly onto the underlying xfrm subsystem. Therefore rather than using a new independent representation for the events we can simply use the existing ones from xfrm_user. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committed by
David S. Miller

parent
e7443892f6
commit
f60f6b8f70
@@ -836,7 +836,7 @@ static void km_state_expired(struct xfrm_state *x, int hard)
|
||||
struct km_event c;
|
||||
|
||||
c.data.hard = hard;
|
||||
c.event = XFRM_SAP_EXPIRED;
|
||||
c.event = XFRM_MSG_EXPIRE;
|
||||
km_state_notify(x, &c);
|
||||
|
||||
if (hard)
|
||||
@@ -884,7 +884,7 @@ void km_policy_expired(struct xfrm_policy *pol, int dir, int hard)
|
||||
struct km_event c;
|
||||
|
||||
c.data.hard = hard;
|
||||
c.event = XFRM_SAP_EXPIRED;
|
||||
c.event = XFRM_MSG_POLEXPIRE;
|
||||
km_policy_notify(pol, dir, &c);
|
||||
|
||||
if (hard)
|
||||
|
Reference in New Issue
Block a user