ethox
ethox copied to clipboard
Padding of small Ethernet frames
Small Ethernet frames (i.e. smaller than 42/46 bytes) should perhaps be padded to the minimum frame length:
https://en.wikipedia.org/wiki/Ethernet_frame#Payload
Is there any interface that requires the stack to perform the padding?
On a real NIC the driver would be expected to pad the packet (ixy.rs enables padding in hardware)
Me and @ackxolotl talked about that already and reached the same conclusion, ie. that the nic would be expected to pad automatically. However, it could be desirable to make that transformation in the stack similar to checksums. Might want to change the label to enhancement to reflect this.