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

fix mtu calculation for raw_socket #611

Merged
merged 1 commit into from May 18, 2022
Merged

Conversation

thvdveld
Copy link
Contributor

Previously, the Ethernet frame header size was added twice to the MTU of the RawSocket.
The first time in interface_mtu and a second time after calling interface_mtu in the raw socket new function.
I removed the one in the interface_mtu function.

Previously, the ethernet frame header was added twice to the MTU. The
first time in `interface_mtu` and a second time after calling
`interface_mtu` in the raw socket `new` function. I removed the one in
the `interface_mtu` function.
Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks!

@Dirbaio Dirbaio merged commit 117dc64 into smoltcp-rs:master May 18, 2022
@thvdveld thvdveld deleted the mtu-fix branch June 28, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants