Skip to content

Minor wolfguard impl. improvements - #147

Open
gasbytes wants to merge 1 commit into
wolfSSL:masterfrom
gasbytes:wolfguard-fixes-and-improvements
Open

Minor wolfguard impl. improvements#147
gasbytes wants to merge 1 commit into
wolfSSL:masterfrom
gasbytes:wolfguard-fixes-and-improvements

Conversation

@gasbytes

@gasbytes gasbytes commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
  • various minor fixes to formatting and comments
  • mtu boundary test (1-byte payload sweep across the wg0 mtu);
  • replay-window advance test (sustain properly a flood of 2000 packets);
  • wg_timers.c refactor of the tick function into separate modules

@gasbytes gasbytes self-assigned this Aug 4, 2026
Copilot AI lite review requested due to automatic review settings August 4, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes small wolfGuard implementation cleanups, adds additional loopback coverage around MTU boundaries and replay-window behavior, and refactors the WireGuard timer tick logic for readability/maintainability.

Changes:

  • Refactors wg_timers_tick() into focused helper functions for each timer rule.
  • Adds two new loopback integration tests: an MTU boundary sweep and a sustained flood to exercise replay-window advancement.
  • Cleans up comments/formatting across multiple wolfGuard source files and removes the bench-wolfguard Makefile target rules.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/wolfguard/wolfguard.h Minor comment/formatting cleanup in keypair storage.
src/wolfguard/wolfguard.c Moves/cleans up comments around wolfguard_ll_send() and nearby formatting.
src/wolfguard/wg_timers.c Refactors timer tick logic into helper functions; adds clarifying comments.
src/wolfguard/wg_packet.c Comment updates/cleanup; minor formatting around TX path comments.
src/wolfguard/wg_noise.c Comment cleanup and clarification about PSK aliasing during handshake init.
src/wolfguard/wg_cookie.c Comment whitespace cleanup.
src/wolfguard/wg_allowedips.c Comment whitespace cleanup.
src/test/test_wolfguard_loopback.c Adds MTU sweep and sustained flood tests; extends suite assembly accordingly.
Makefile Removes bench-wolfguard build rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/test/test_wolfguard_loopback.c Outdated
Comment thread src/wolfguard/wg_packet.c
Comment thread Makefile
@gasbytes
gasbytes force-pushed the wolfguard-fixes-and-improvements branch 2 times, most recently from e5a415e to a939fe9 Compare August 4, 2026 15:45
@gasbytes
gasbytes marked this pull request as ready for review August 6, 2026 10:33
- various minor fixes to formatting and comments
- mtu boundary test (1-byte payload sweep across the wg0 mtu);
- replay-window advance test (sustain properly a flood of 2000 packets);
- wg_timers.c refactor of the tick function into separate modules
@gasbytes
gasbytes force-pushed the wolfguard-fixes-and-improvements branch from a939fe9 to 25e3f5d Compare August 6, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants