From 346c24723b8060c08542ea84921a997c7951ece7 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 8 Mar 2022 13:24:28 +0000 Subject: ip: IPv4 Fragmentation fix for l2fragmetable size Type: fix The l2unfragmentable size is not included in the calculation of 'max', the maximum amount of data that can be added to a fragment, therefore the fragments created are too big. Signed-off-by: Neale Ranns Change-Id: Id1e949ad98203b6f8ea2f55322ef6fa3d507e2a6 --- test/test_map.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_map.py b/test/test_map.py index 90fee301267..22fe1e1d20a 100644 --- a/test/test_map.py +++ b/test/test_map.py @@ -388,7 +388,8 @@ class TestMAP(VppTestCase): self.pg_send(self.pg0, v4*1) rx = self.pg1.get_capture(2) - frags = fragment_rfc791(v4[1], 1000) + # 1000-sizeof(ip6_header_t) = 960. + frags = fragment_rfc791(v4[1], 960) frags[0].id = 0 frags[1].id = 0 frags[0].ttl -= 1 -- cgit 1.2.3-korg