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

Lower ZT_MIN_PHYSMTU #2365

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Lower ZT_MIN_PHYSMTU #2365

merged 2 commits into from
Nov 12, 2024

Conversation

laduke
Copy link
Contributor

@laduke laduke commented Sep 13, 2024

regarding #2361

This constant is only used in one place:

if (pc.mtu <= 0) {
pc.mtu = ZT_DEFAULT_PHYSMTU;
} else if (pc.mtu < ZT_MIN_PHYSMTU) {
pc.mtu = ZT_MIN_PHYSMTU;
} else if (pc.mtu > ZT_MAX_PHYSMTU) {
pc.mtu = ZT_MAX_PHYSMTU;
}

This change can't affect anything unless the user configures this value in their local.conf

@laduke laduke force-pushed the laduke/2361-phy-mtu branch from 083054d to 1b0a648 Compare September 13, 2024 17:03
@laduke laduke force-pushed the laduke/2361-phy-mtu branch from 1b0a648 to bd8cd9e Compare September 23, 2024 19:20
@laduke laduke requested review from rcoder and joseph-henry October 7, 2024 19:11
@laduke laduke force-pushed the laduke/2361-phy-mtu branch from bd8cd9e to 55bbd2a Compare October 18, 2024 22:44
Copy link
Contributor

@joseph-henry joseph-henry left a comment

Choose a reason for hiding this comment

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

I haven't personally tested this PR but it does make some sense and I think since it is not going to affect people by default it is safe to merge.

@joseph-henry joseph-henry merged commit c092b63 into dev Nov 12, 2024
4 checks passed
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