diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-06-19 01:43:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-19 01:43:22 -0400 |
commit | 4666faab095230ec8aa62da6c33391287f281154 (patch) | |
tree | 36d61925bb02dd7de537ff65d35190eeebbf47fa /include/net/xfrm.h | |
parent | 26b15dad9f1c19d6d4f7b999b07eaa6d98e4b375 (diff) |
[IPSEC] Kill spurious hard expire messages
This patch ensures that the hard state/policy expire notifications are
only sent when the state/policy is successfully removed from their
respective tables.
As it is, it's possible for a state/policy to both expire through
reaching a hard limit, as well as being deleted by the user.
Note that this behaviour isn't actually forbidden by RFC 2367.
However, it is a quality of implementation issue.
As an added bonus, the restructuring in this patch will help
eventually in moving the expire notifications from softirq
context into process context, thus improving their reliability.
One important side-effect from this change is that SAs reaching
their hard byte/packet limits are now deleted immediately, just
like SAs that have reached their hard time limits.
Previously they were announced immediately but only deleted after
30 seconds.
This is bad because it prevents the system from issuing an ACQUIRE
command until the existing state was deleted by the user or expires
after the time is up.
In the scenario where the expire notification was lost this introduces
a 30 second delay into the system for no good reason.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index a159655ebede..aaa0f5f330e2 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -679,7 +679,7 @@ static inline int xfrm_sk_clone_policy(struct sock *sk) | |||
679 | return 0; | 679 | return 0; |
680 | } | 680 | } |
681 | 681 | ||
682 | extern void xfrm_policy_delete(struct xfrm_policy *pol, int dir); | 682 | extern int xfrm_policy_delete(struct xfrm_policy *pol, int dir); |
683 | 683 | ||
684 | static inline void xfrm_sk_free_policy(struct sock *sk) | 684 | static inline void xfrm_sk_free_policy(struct sock *sk) |
685 | { | 685 | { |