On Thu, 16 Jun 2022 17:10:46 +0200 David Marchand <[email protected]> wrote:
> On Fri, Apr 15, 2022 at 5:27 AM Huichao Cai <[email protected]> wrote: > > > > 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 <[email protected]> > > gcc-12 raises warnings on both the unit test code and the library code. > See below. Since the copies will all be short why bother using rte_memcpy() all over the place. Especially in the test code, just use memcpy().

