mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[PR #240] fix: honor RejectAfterTime on data paths #253
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/240
Author: @HeisLuka
Created: 9/14/2026
Status: 🔄 Open
Base:
master← Head:fix/honor-reject-after-time-data-paths📝 Commits (1)
1c00119fix: honor RejectAfterTime on data paths📊 Changes
2 files changed (+8 additions, -2 deletions)
View changed files
📝
src/receive.c(+5 -1)📝
src/send.c(+3 -1)📄 Description
Summary
Use the configured
RejectAfterTimerange when expiring data-path keypairsinstead of always using the fixed
REJECT_AFTER_TIMEconstant.Both send and receive now snapshot the configured range and use its upper bound
as the keychain expiration time, matching
amneziawg-go'skeychainExpireTime()semantics.Previously, for example,
RejectAfterTime = 300still caused the kernel datapaths to invalidate a key after the fixed 180-second default, while a value
below 180 seconds was also ignored.
Using the upper bound rather than picking a fresh random value for every packet
keeps the expiration boundary stable and matches the Go implementation.
Scope
This PR addresses problem 1 from #227 only.
The failed-handshake zero-key cleanup and negative receive refresh timeout are
handled separately.
Related to #227
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.