lib/dp-packet.h
/* Returns the size of the packet from the beginning of the L4 header to the
 * end of the L4 payload.  Hence L2 padding is not included. */
Returns the size of the packet from the beginning of the L4 header to the
end of the L4 payload.  Hence L2 padding is not included.
Returns the size of the packet from the beginning of the L4 header to the end of the L4 payload . Hence L2 padding is not included .
static inline size_t
dp_packet_l4_size(const struct dp_packet *b)
{
    return OVS_LIKELY(b->l4_ofs != UINT16_MAX)
        ? (const char *)dp_packet_tail(b) - (const char *)dp_packet_l4(b)
        - dp_packet_l2_pad_size(b)
        : 0;
}
static inline size_t dp_packet_l4_size ( const struct dp_packet * b ) { return OVS_LIKELY ( b -> l4_ofs != UINT16_MAX ) ? ( const char * ) dp_packet_tail ( b ) - ( const char * ) dp_packet_l4 ( b ) - dp_packet_l2_pad_size ( b ) : 0 ; }
Returns the size of the packet from the beginning of the L4 header to the
 end of the L4 payload.
Returns the size of the packet from the beginning of the L4 header to the end of the L4 payload .