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

Wrong MTU for IEEE802.15.4 #622

Closed
thvdveld opened this issue May 30, 2022 · 1 comment · Fixed by #857
Closed

Wrong MTU for IEEE802.15.4 #622

thvdveld opened this issue May 30, 2022 · 1 comment · Fixed by #857
Labels

Comments

@thvdveld
Copy link
Contributor

When calling interface_mtu for the IEEE802154 medium, a value of 123 is returned, instead of 125 or 127 (when including the IEEE80254 checksum field). I just noticed it now, because before #611, the header Ethernet header size was added to the MTU, so returning 137 bytes for IEEE802154.

@thvdveld
Copy link
Contributor Author

Currently, #580 adds a workaround, however, this is not a correct fix.

https://github.com/thvdveld/smoltcp/blob/f3310e63f4b014cc7f5f04ad9393e13602e7c163/src/phy/raw_socket.rs#L36-L40

thvdveld added a commit to thvdveld/smoltcp that referenced this issue Nov 17, 2023
This fixes smoltcp-rs#622, where at the time of writing, it was not clear why
SIOCGIFMTU returned 123 instead of the more logical 125 or 127 (with
FCS).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants