Skip to content

Conversation

@raggi
Copy link
Member

@raggi raggi commented Oct 12, 2022

Always set the MTU to the Tailscale default MTU. In practice we are
missing applying an MTU for IPv6 on Windows prior to this patch.

This is the simplest patch to fix the problem, the code in here needs
some more refactoring.

Fixes #5914

Signed-off-by: James Tucker james@tailscale.com

Always set the MTU to the Tailscale default MTU. In practice we are
missing applying an MTU for IPv6 on Windows prior to this patch.

This is the simplest patch to fix the problem, the code in here needs
some more refactoring.

Fixes #5914

Signed-off-by: James Tucker <james@tailscale.com>
@raggi raggi force-pushed the raggi/windows-mtu branch from 45e6b68 to 2eca71e Compare October 12, 2022 23:38
@DentonGentry DentonGentry requested a review from dblohm7 October 12, 2022 23:46
@raggi raggi merged commit 4ec6d41 into main Oct 13, 2022
@raggi raggi deleted the raggi/windows-mtu branch October 13, 2022 17:48
@jinyi
Copy link

jinyi commented Mar 30, 2023

Does it break the behave of TS_DEBUG_MTU on Windows?

@raggi
Copy link
Member Author

raggi commented Mar 30, 2023

Does it break the behave of TS_DEBUG_MTU on Windows?

This change didn't introduce a regression on that axis, but it also did not fix that issue. Prior to this change MTU was never set for IPv6, with this change it is, but it does not respect TS_DEBUG_MTU, as several code paths do not.

Are you using TS_DEBUG_MTU regularly?

raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Added envknob.Lookup{Int,Uint}Sized to make it easier to keep CodeQL
happy when using converted values.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Added envknob.Lookup{Int,Uint}Sized to make it easier to keep CodeQL
happy when using converted values.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
raggi added a commit that referenced this pull request Mar 30, 2023
Noted on #5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Added envknob.Lookup{Int,Uint}Sized to make it easier to keep CodeQL
happy when using converted values.

Updates #5915

Signed-off-by: James Tucker <james@tailscale.com>
darksip pushed a commit to darksip/tailscale that referenced this pull request Apr 3, 2023
Noted on tailscale#5915 TS_DEBUG_MTU was not used consistently everywhere.
Extract the default into a function that can apply this centrally and
use it everywhere.

Added envknob.Lookup{Int,Uint}Sized to make it easier to keep CodeQL
happy when using converted values.

Updates tailscale#5915

Signed-off-by: James Tucker <james@tailscale.com>
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.

MTU is not set for IPv6 on Windows

4 participants