summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-03-08 13:24:28 +0000
committerOle Tr�an <otroan@employees.org>2022-03-09 19:15:05 +0000
commit346c24723b8060c08542ea84921a997c7951ece7 (patch)
treede37feef05fa92b328dade84a93e760b69ca0e30 /test
parent23e5f0923b843f11d79e57b456a4073d4be3e6f9 (diff)
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 <neale@graphiant.com> Change-Id: Id1e949ad98203b6f8ea2f55322ef6fa3d507e2a6
Diffstat (limited to 'test')
-rw-r--r--test/test_map.py3
1 files changed, 2 insertions, 1 deletions
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