Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireguard: short circuit known addr #3998

Merged
merged 8 commits into from
Oct 16, 2023
Merged

Conversation

octol
Copy link
Contributor

@octol octol commented Oct 16, 2023

Description

Closes: #3987
Closes: NC-61

Skip duplicate packet parsing when the addr encountered is a known one. If the addr is know we can forward the packet to the already existing tunnel for decapsulation without having to go through the anon parsing flow.

  • Forward directly on known addr
  • Extract out test dev creation
  • Extract out RegisteredPeers
  • Extract out registered_peers.rs
  • Reset main rate limiter on a timer
  • Some pedantic clippy
  • minor tidy

@octol octol force-pushed the jon/peer-skip-on-known-addr branch from 5889612 to 30582fe Compare October 16, 2023 08:16
@octol octol merged commit c598082 into develop Oct 16, 2023
22 checks passed
@octol octol deleted the jon/peer-skip-on-known-addr branch October 16, 2023 12:15
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.

Parse peer public key up front in UDP handler
1 participant