diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-12-07 09:49:53 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-12-10 08:41:00 +0000 |
commit | 7c3275e84b64ade4e20d00e4457bd4e437b1894f (patch) | |
tree | 1efbac2a6a5cb9ca4917062a37244039c1065e64 /test/framework.py | |
parent | 514df6f931fb95e801c5033b114967e86113e778 (diff) |
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>
Diffstat (limited to 'test/framework.py')
-rw-r--r-- | test/framework.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py index 02e455b1223..f4b168b3c75 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1293,7 +1293,8 @@ class VppTestCase(CPUInterface, unittest.TestCase): self.pg_enable_capture(self.pg_interfaces) self.pg_start(trace=trace) - def send_and_assert_no_replies(self, intf, pkts, remark="", timeout=None): + def send_and_assert_no_replies(self, intf, pkts, remark="", timeout=None, + trace=True): self.pg_send(intf, pkts) if not timeout: timeout = 1 @@ -1301,6 +1302,8 @@ class VppTestCase(CPUInterface, unittest.TestCase): i.get_capture(0, timeout=timeout) i.assert_nothing_captured(remark=remark) timeout = 0.1 + if trace: + self.logger.debug(self.vapi.cli("show trace")) def send_and_expect(self, intf, pkts, output, n_rx=None, worker=None, trace=True): |