[dpdk-dev] [PATCH v2] ip_frag: fix fragmenting ipv4 packet with header option

2021-03-25 Thread 583493798
From: Pu Xu <583493...@qq.com> 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") Signed-off-by: Pu Xu <583493...@

[dpdk-dev] [PATCH v2] 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).

2021-03-25 Thread 583493798
From: Pu Xu <583493...@qq.com> Signed-off-by: Pu Xu <583493...@qq.com> --- lib/librte_ip_frag/rte_ipv4_fragmentation.c | 34 + 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentati