OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
349 stars 126 forks source link

Sent Ethernet frames may have extra octets at the end #197

Open JannePeltonen opened 6 years ago

JannePeltonen commented 6 years ago

Packet buffer data after the IP packet is not removed before the packet is output, resulting in extra bytes in the outgoing Ethernet frame after the IP payload data. This occurs also with VxLANs.

One way to see this is to forward very short IP packets from an untagged ethernet interface to a VLAN interface. In that case the received Ethernet padding is not removed and after VLAN tag insertion the outgoing frame is longer than it should be.

JannePeltonen commented 6 years ago

Commit c226ac7 fixes the issue for IPv4 packets but not for IPv6 packets.