Skip to content

add wireguard fragmentation helpers#82

Merged
FlorianUekermann merged 1 commit intov0from
florian/obs-3199-fragmentation-support-shared-code-in-api-crate
Feb 23, 2026
Merged

add wireguard fragmentation helpers#82
FlorianUekermann merged 1 commit intov0from
florian/obs-3199-fragmentation-support-shared-code-in-api-crate

Conversation

@FlorianUekermann
Copy link
Contributor

No description provided.

@FlorianUekermann FlorianUekermann force-pushed the florian/obs-3199-fragmentation-support-shared-code-in-api-crate branch 5 times, most recently from 7531c51 to c49b4f1 Compare February 22, 2026 16:57

const WG_FRAGMENT_MESSAGE_TYPE: u8 = 170;

const OVERHEAD: usize = 1 // message type
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const OVERHEAD: usize = 1 // message type
const FRAGMENT_META_OVERHEAD: usize = 1 // message type

Just "overhead" is very vague. I also wouldn't mind FRAGMENT_HEADER_SIZE, FRAGMENT_HEADER_SIZE or similar.

pub mod merge;
pub mod split;

const WG_FRAGMENT_MESSAGE_TYPE: u8 = 170;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a comment with where this magic value comes from? (AKA what values are used by wireguard and what range we can use)

@FlorianUekermann FlorianUekermann force-pushed the florian/obs-3199-fragmentation-support-shared-code-in-api-crate branch from c49b4f1 to 58aeaf3 Compare February 23, 2026 16:30
@FlorianUekermann FlorianUekermann merged commit ac56f45 into v0 Feb 23, 2026
1 check passed
@FlorianUekermann FlorianUekermann deleted the florian/obs-3199-fragmentation-support-shared-code-in-api-crate branch February 23, 2026 16:32
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