]> git.droids-corp.org - dpdk.git/commit
net: fix L2TPv2 common header
authorJie Wang <jie1x.wang@intel.com>
Wed, 9 Feb 2022 09:38:53 +0000 (17:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 9 Feb 2022 20:30:14 +0000 (21:30 +0100)
commit9747f6955b01005bb19e8dfacd64c4bb92dbd07e
treec9f0855141bd59d0a42541cf634723223f7d3703
parentf840cf77132c81aeee4da1d0f1ed804505f5bcad
net: fix L2TPv2 common header

The fields of L2TPv2 common header were reversed in big endian and
little endian.

This patch fixes this error to ensure L2TPv2 can be parsed correctly.

For L2TP reference:
https://datatracker.ietf.org/doc/html/rfc2661#section-3.1

Fixes: 3a929df1f286 ("ethdev: support L2TPv2 and PPP procotol")
Cc: stable@dpdk.org
Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/net/rte_l2tpv2.h