ip_frag: add IPv4 options fragment
authorHuichao Cai <chcchc88@163.com>
Fri, 15 Apr 2022 03:26:50 +0000 (11:26 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jun 2022 06:58:27 +0000 (08:58 +0200)
commitb50a14a853aa8f765c5f8d57c4c4891f6e175181
tree4a56f41e0c744feef2f8f56ab165414315762c44
parentf5e60154adec3260254272288080d465bc066401
ip_frag: add IPv4 options fragment

According to RFC791,the options may appear or not in datagrams.
They must be implemented by all IP modules (host and gateways).
What is optional is their transmission in any particular datagram,
not their implementation. So we have to deal with it during the
fragmenting process.
Add some test data for the IPv4 header optional field fragmenting.

Signed-off-by: Huichao Cai <chcchc88@163.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_ipfrag.c
lib/ip_frag/rte_ipv4_fragmentation.c
lib/net/rte_ip.h