smoltcp icon indicating copy to clipboard operation
smoltcp copied to clipboard

Wrong MTU for IEEE802.15.4

Open thvdveld opened this issue 2 years ago • 1 comments

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 avatar May 30 '22 10:05 thvdveld

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 avatar Jun 13 '22 14:06 thvdveld