Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176799555
D22370.1793383794.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
943 B
Referenced Files
None
Subscribers
None
D22370.1793383794.diff
View Options
Index: head/sys/netipsec/key.c
===================================================================
--- head/sys/netipsec/key.c
+++ head/sys/netipsec/key.c
@@ -101,6 +101,7 @@
#define FULLMASK 0xff
#define _BITS(bytes) ((bytes) << 3)
+#define UINT32_80PCT 0xcccccccc
/*
* Note on SA reference counting:
* - SAs that are not in DEAD state will have (total external reference + 1)
@@ -4536,7 +4537,11 @@
(sav->lft_s->usetime != 0 && sav->firstused &&
now - sav->firstused > sav->lft_s->usetime) ||
(sav->lft_s->bytes != 0 && counter_u64_fetch(
- sav->lft_c_bytes) > sav->lft_s->bytes))) {
+ sav->lft_c_bytes) > sav->lft_s->bytes) ||
+ (!(sav->flags & SADB_X_SAFLAGS_ESN) &&
+ (sav->replay != NULL) && (
+ (sav->replay->count > UINT32_80PCT) ||
+ (sav->replay->last > UINT32_80PCT))))) {
SECASVAR_UNLOCK(sav);
SAV_ADDREF(sav);
LIST_INSERT_HEAD(&sexpireq, sav, drainq);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 30, 6:09 PM (4 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41239522
Default Alt Text
D22370.1793383794.diff (943 B)
Attached To
Mode
D22370: Trigger soft lifetime expiration on sequence number
Attached
Detach File
Event Timeline