The IPv6 can have large extension header, like the "Segment Routing" may
have (32 + 1) * 8 = 264 bytes, the 8 bits size of L3 length can't handle
this case correctly.

Signed-off-by: Haiyue Wang <haiyue.w...@intel.com>
---
 lib/librte_net/rte_net.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_net/rte_net.h b/lib/librte_net/rte_net.h
index 94b06d9ee..992fb088a 100644
--- a/lib/librte_net/rte_net.h
+++ b/lib/librte_net/rte_net.h
@@ -20,11 +20,11 @@ extern "C" {
  */
 struct rte_net_hdr_lens {
        uint8_t l2_len;
-       uint8_t l3_len;
+       uint16_t l3_len;
        uint8_t l4_len;
        uint8_t tunnel_len;
        uint8_t inner_l2_len;
-       uint8_t inner_l3_len;
+       uint16_t inner_l3_len;
        uint8_t inner_l4_len;
 };
 
-- 
2.28.0

Reply via email to