diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-06-19 01:44:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 01:44:37 -0400 |
commit | f60f6b8f70c756fc786d68f02ec17a1e84db645f (patch) | |
tree | 8eee05de129439e4ffde876d2208a613178acfe3 /net/xfrm/xfrm_state.c | |
parent | e7443892f656d760ec1b9d92567178c87e100f4a (diff) |
[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>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index e068bd721050..2537f26f097c 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -836,7 +836,7 @@ static void km_state_expired(struct xfrm_state *x, int hard) | |||
836 | struct km_event c; | 836 | struct km_event c; |
837 | 837 | ||
838 | c.data.hard = hard; | 838 | c.data.hard = hard; |
839 | c.event = XFRM_SAP_EXPIRED; | 839 | c.event = XFRM_MSG_EXPIRE; |
840 | km_state_notify(x, &c); | 840 | km_state_notify(x, &c); |
841 | 841 | ||
842 | if (hard) | 842 | if (hard) |
@@ -884,7 +884,7 @@ void km_policy_expired(struct xfrm_policy *pol, int dir, int hard) | |||
884 | struct km_event c; | 884 | struct km_event c; |
885 | 885 | ||
886 | c.data.hard = hard; | 886 | c.data.hard = hard; |
887 | c.event = XFRM_SAP_EXPIRED; | 887 | c.event = XFRM_MSG_POLEXPIRE; |
888 | km_policy_notify(pol, dir, &c); | 888 | km_policy_notify(pol, dir, &c); |
889 | 889 | ||
890 | if (hard) | 890 | if (hard) |