Skip to content

Conversation

@copybara-service
Copy link

@copybara-servicecopybara-servicebot 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-servicecopybara-servicebot added the exported Issue was exported automatically label Dec 12, 2025
@copybara-servicecopybara-servicebot changed the title Account for endpoint header size when calculating Route MTU.Copy route MTU from net namespace and adjust for network header sizeDec 19, 2025
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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exportedIssue 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

@konstantin-s-bogom