smoltcp
smoltcp copied to clipboard
Wrong MTU for IEEE802.15.4
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.
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