-
Notifications
You must be signed in to change notification settings - Fork 200
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
Modifying ethernet netif mtu? #557
Comments
My current workaround for this is to set the mtu of the ethernet netif on the computer to 1420 with netsh interface ipv4 set subinterface "Ethernet" mtu=1420 store=persistent This works, however it is not ideal. |
I think at this point you know about this stuff more than me. If you find a way - let me know. It is also always an option to open a bug in the ESP-IDF repo requesting this functionality. |
Yeah I think that's what I'll do, this isn't really your problem at this point since you just use what's available from the lower layer. Thanks anyway! |
So we might be getting this soon. However this would be merged into master for I'm up for updating the wrappers here for them to match but from what I see we're still in 5.2.2? Bit confused here. |
Yes. If this is not a breaking change (it might NOT be if they just add a new field to a C struct because this is not considered a breaking change by ESP-IDF) they might even back-port it to release branches.
In any case, once the new field is available in ESP-IDF, you can also introduce it in esp-idf-svc, but behind a |
Alright, well we shall see how it goes. |
Hi,
I'm looking to make my ethernet netif's mtu match that of wireguard at 1420 to prevent fragmentation, but the default is 1500 and that doesn't seem changeable at all.
Since the rust wrappers are using the esp-netif api to create interfaces, the raw lwip interface is abstracted and we can't access the mtu. And even if we could (it's most likely possible through shenanigans) I'm pretty sure changing the mtu at runtime is gonna make everything explode.
Soooo... How do we create a netif with a custom mtu? Is it even possible?
From what I could see the mtu is hardcoded here,
And this function is called by
Which should be the init function passed when initializing an ethernet netif.
The text was updated successfully, but these errors were encountered: