[PR #194] Backport some wireguard-go upstream fixes #199

Open
opened 2026-10-13 21:04:30 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-go/pull/194
Author: @rany2
Created: 9/6/2026
Status: 🔄 Open

Base: master ← Head: restore-upstream-fixes


📝 Commits (5)

  • ea6068d tun: clear virtioNetHdr when deleting item from tcpGROTable
  • eb3deee device: reduce RoutineHandshake allocations
  • d5c367b device: make unmarshall length checks exact
  • 40beb02 device: optimize message encoding
  • 0944361 device: fix race between timer expiry and reset

📊 Changes

6 files changed (+163 additions, -36 deletions)

View changed files

📝 device/noise-protocol.go (+93 -0)
📝 device/receive.go (+3 -7)
📝 device/send.go (+6 -10)
📝 device/timers.go (+6 -4)
📝 tun/offload_linux.go (+7 -15)
📝 tun/offload_linux_test.go (+48 -0)

📄 Description

"device: optimize message encoding" required some adaption for amneziawg-go, but everything else was trivially applied. This should allow us to benefit from some of the improvements to wireguard-go.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-go/pull/194 **Author:** [@rany2](https://github.com/rany2) **Created:** 9/6/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `restore-upstream-fixes` --- ### 📝 Commits (5) - [`ea6068d`](https://github.com/amnezia-vpn/amneziawg-go/commit/ea6068dfd7ed772fa098e25bf9410771503ad874) tun: clear virtioNetHdr when deleting item from tcpGROTable - [`eb3deee`](https://github.com/amnezia-vpn/amneziawg-go/commit/eb3deeeea272d302ec3ea5a1355f40be955de82c) device: reduce RoutineHandshake allocations - [`d5c367b`](https://github.com/amnezia-vpn/amneziawg-go/commit/d5c367b958be92d1927057e37223644b3ca317e9) device: make unmarshall length checks exact - [`40beb02`](https://github.com/amnezia-vpn/amneziawg-go/commit/40beb02c2dafb9f27767a04e2f5779eca0a2da50) device: optimize message encoding - [`0944361`](https://github.com/amnezia-vpn/amneziawg-go/commit/09443616e4346d6da24ced6032dc27e3aa525806) device: fix race between timer expiry and reset ### 📊 Changes **6 files changed** (+163 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `device/noise-protocol.go` (+93 -0) 📝 `device/receive.go` (+3 -7) 📝 `device/send.go` (+6 -10) 📝 `device/timers.go` (+6 -4) 📝 `tun/offload_linux.go` (+7 -15) 📝 `tun/offload_linux_test.go` (+48 -0) </details> ### 📄 Description "device: optimize message encoding" required some adaption for amneziawg-go, but everything else was trivially applied. This should allow us to benefit from some of the improvements to wireguard-go. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-go#199
No description provided.