[ovs-dev] [PATCH] pcap-file: Fix calculation of TCP payload length in tcp_reader_run().

Ben Pfaff blp at ovn.org
Tue Feb 16 20:52:48 UTC 2021


On Fri, Feb 12, 2021 at 11:15:46AM -0800, William Tu wrote:
> I'm confused with what l2_pad_size is.
> I thought it's between L2 and L3 header, there is a 2-byte padding to
> make it 16-byte alignment. But it doesn't look like that.

Ethernet has a 64-byte minimum packet length.  l2_pad_size is the number
of bytes of padding added to a packet to bring it up to that minimum
length.


More information about the dev mailing list