ip: reassembly: handle atomic fragments correctly 00/34700/3
authorKlement Sekera <ksekera@cisco.com>
Tue, 7 Dec 2021 09:49:53 +0000 (09:49 +0000)
committerOle Tr�an <otroan@employees.org>
Fri, 10 Dec 2021 08:41:00 +0000 (08:41 +0000)
commit7c3275e84b64ade4e20d00e4457bd4e437b1894f
tree1efbac2a6a5cb9ca4917062a37244039c1065e64
parent514df6f931fb95e801c5033b114967e86113e778
ip: reassembly: handle atomic fragments correctly

If a fragment arrives with fragment offset = 0 and M = 0, it means that
this is actually a complete packet and per RFC 8200, it should be
treated independently from other fragments. This patch does that.
Fragmentation header is stripped and fragment is forwarded irregardles
of other existing reassemblies in case of full reassembly and treated
the same way as regular packet in shallow virtual reassembly.

Type: improvement
Change-Id: If3322d5e3160cd755b8465a642702a9166d46cc2
Signed-off-by: Klement Sekera <ksekera@cisco.com>
src/vnet/ip/reass/ip6_full_reass.c
src/vnet/ip/reass/ip6_sv_reass.c
test/framework.py
test/test_reassembly.py