Skip to content

device: further add, revise API for on-demand configuration of peers#48

Open
bradfitz wants to merge 1 commit intotailscalefrom
bradfitz/noconfig3
Open

device: further add, revise API for on-demand configuration of peers#48
bradfitz wants to merge 1 commit intotailscalefrom
bradfitz/noconfig3

Conversation

@bradfitz
Copy link
Member

@bradfitz bradfitz commented Feb 9, 2026

Updates tailscale/tailscale#17858
Updates tailscale/corp#35603

Updates tailscale/tailscale#17858
Updates tailscale/corp#35603

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
}
}

func parseIPv6AddrPorts(p []byte) (src, dst netip.AddrPort, err error) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm slightly concerned with this being here, and for completeness needing more data, like session state (if we're going to completely get fragmentation/routing extensions right).

It would probably be better to pass the whole buffer down through the lookup extension. It'll still need a shallow address extraction for the non-extension case, but that won't need to parse any extension headers or ports on the wireguard-go side.

I also think it'll be easier to iterate on details that way, as we can use our experiments infrastructure back at home.

@raggi
Copy link
Member

raggi commented Feb 10, 2026

Rest of the PR looks great, glad to have the optimzation.

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