ip_frag: fix fragmenting IPv4 packet with header option
authorPu Xu <583493798@qq.com>
Thu, 25 Mar 2021 11:11:30 +0000 (19:11 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 14:50:46 +0000 (16:50 +0200)
commit1edf7a796ddc6b8b642153f0a434a3e44e2d4fe3
tree3a0d190e4933fbf42bee8dbc46c7d2ec0bb30918
parenta20cb9d0275eb7f0618b4ef2448544056e1035df
ip_frag: fix fragmenting IPv4 packet with header option

When fragmenting IPv4 packet, the data offset should be calculated through
the IHL field in IP header rather than using sizeof(struct rte_ipv4_hdr).

Fixes: 4c38e5532a07 ("ip_frag: refactor IPv4 fragmentation into a proper library")
Cc: stable@dpdk.org
Signed-off-by: Pu Xu <583493798@qq.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/ip_frag/rte_ipv4_fragmentation.c