Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Dec 12, 2025

Copy route MTU from net namespace and adjust for network header size

In the original version of this commit
#11857, If r.mtu has been set we skip
calculating the proper MTU in tcpip/stack/route.go:Route.MTU() via endpoint.MTU
and use r.mtu instead. However nothing in the callstack from
tcpip/stack/stack.go:FindRoute to setting r.mtu actually adjusts the size to be
able to hold the endpoint header. Hence we need to adjust it.

Fixes #11856

@copybara-service copybara-service bot added the exported Issue was exported automatically label Dec 12, 2025
@copybara-service copybara-service bot changed the title Account for endpoint header size when calculating Route MTU. Copy route MTU from net namespace and adjust for network header size Dec 19, 2025
@copybara-service copybara-service bot force-pushed the test/cl843416148 branch 3 times, most recently from 6079c8d to 7608c9f Compare December 22, 2025 18:57
In the original version of this commit
#11857, If r.mtu has been set we skip
calculating the proper MTU in tcpip/stack/route.go:Route.MTU() via endpoint.MTU
and use r.mtu instead. However nothing in the callstack from
tcpip/stack/stack.go:FindRoute to setting r.mtu actually adjusts the size to be
able to hold the endpoint header. Hence we need to adjust it.

Fixes #11856

PiperOrigin-RevId: 843416148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing MTU value in routes created in the sandox

1 participant