[dpdk-dev] [PATCH v2] ip_frag: fix fragmenting ipv4 packet with header option
Aaron Conole
aconole at redhat.com
Thu Mar 25 14:09:18 CET 2021
583493798 at qq.com writes:
> From: Pu Xu <583493798 at 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 <583493798 at qq.com>
> ---
Thanks for this patch, it looks okay.
Can you please add a test case to app/test/test_ipfrag.c so that we can
catch any breakage in this area in the future?
More information about the dev
mailing list