[PR #103] [MERGED] fix: refactor processing of junk packets #145

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

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-go/pull/103
Author: @ygurov
Created: 11/29/2025
Status: ✅ Merged
Merged: 12/1/2025
Merged by: @vkamn

Base: master ← Head: fix/junkpackets-rework


📝 Commits (1)

  • c221fbd fix: refactor processing of junk packets

📊 Changes

33 files changed (+851 additions, -2831 deletions)

View changed files

➖ device/awg/awg.go (+0 -90)
➖ device/awg/internal/mock.go (+0 -37)
➖ device/awg/junk_creator.go (+0 -50)
➖ device/awg/junk_creator_test.go (+0 -97)
➖ device/awg/magic_header.go (+0 -97)
➖ device/awg/magic_header_test.go (+0 -488)
➖ device/awg/prng.go (+0 -50)
➖ device/awg/special_handshake_handler.go (+0 -36)
➖ device/awg/tag_generator.go (+0 -229)
➖ device/awg/tag_generator_test.go (+0 -321)
➖ device/awg/tag_junk_packet_generator.go (+0 -59)
➖ device/awg/tag_junk_packet_generator_test.go (+0 -210)
➖ device/awg/tag_junk_packet_generators.go (+0 -66)
➖ device/awg/tag_junk_packet_generators_test.go (+0 -149)
➖ device/awg/tag_parser.go (+0 -112)
➖ device/awg/tag_parser_test.go (+0 -77)
📝 device/cookie_test.go (+1 -1)
📝 device/device.go (+26 -399)
➕ device/magic-header.go (+63 -0)
📝 device/noise-protocol.go (+7 -48)

...and 13 more files

📄 Description

  • fix the bug that transport packet interprets as init/resp/cookie with the same size
  • cleanup error responses
  • reduce buffer allocations

🔄 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/103 **Author:** [@ygurov](https://github.com/ygurov) **Created:** 11/29/2025 **Status:** ✅ Merged **Merged:** 12/1/2025 **Merged by:** [@vkamn](https://github.com/vkamn) **Base:** `master` ← **Head:** `fix/junkpackets-rework` --- ### 📝 Commits (1) - [`c221fbd`](https://github.com/amnezia-vpn/amneziawg-go/commit/c221fbdf47591d92d09fd0e43816942cdd385c93) fix: refactor processing of junk packets ### 📊 Changes **33 files changed** (+851 additions, -2831 deletions) <details> <summary>View changed files</summary> ➖ `device/awg/awg.go` (+0 -90) ➖ `device/awg/internal/mock.go` (+0 -37) ➖ `device/awg/junk_creator.go` (+0 -50) ➖ `device/awg/junk_creator_test.go` (+0 -97) ➖ `device/awg/magic_header.go` (+0 -97) ➖ `device/awg/magic_header_test.go` (+0 -488) ➖ `device/awg/prng.go` (+0 -50) ➖ `device/awg/special_handshake_handler.go` (+0 -36) ➖ `device/awg/tag_generator.go` (+0 -229) ➖ `device/awg/tag_generator_test.go` (+0 -321) ➖ `device/awg/tag_junk_packet_generator.go` (+0 -59) ➖ `device/awg/tag_junk_packet_generator_test.go` (+0 -210) ➖ `device/awg/tag_junk_packet_generators.go` (+0 -66) ➖ `device/awg/tag_junk_packet_generators_test.go` (+0 -149) ➖ `device/awg/tag_parser.go` (+0 -112) ➖ `device/awg/tag_parser_test.go` (+0 -77) 📝 `device/cookie_test.go` (+1 -1) 📝 `device/device.go` (+26 -399) ➕ `device/magic-header.go` (+63 -0) 📝 `device/noise-protocol.go` (+7 -48) _...and 13 more files_ </details> ### 📄 Description - fix the bug that transport packet interprets as init/resp/cookie with the same size - cleanup error responses - reduce buffer allocations --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 21:04:01 +00:00
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#145
No description provided.