Skip to content

Conversation

FlorianUekermann
Copy link

@FlorianUekermann FlorianUekermann commented Sep 15, 2025

On macOS The set_mtu function fails to detect the default interface correctly and always sets the (potentially incorrect) default MTU as a result.

The problem is that netstat -nr -f inet returns the interface name in the 4th column, not the 5th.

I used macOS 15.4 for testing, but I am not particularly familiar with the Apple ecosystem. I'm not sure if this never worked, the netstat shipped by Apple changed at some point and how/which other platforms (iOS?) may be affected. So please keep that before merging.

Signed-off-by: Florian Uekermann <florian@uekermann.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant