summaryrefslogtreecommitdiffstats
path: root/test/test_map.py
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2024-02-12 10:08:03 +0100
committerOle Tr�an <otroan@employees.org>2024-03-04 11:30:24 +0000
commit2cc14de7ebe232f99673ef68c2ed5f2f2680754f (patch)
tree0cc005d4601d879a0f8c13d55ad6d848f2914ab6 /test/test_map.py
parent5be4b869a450530052f31e3325dfcfee49ac2178 (diff)
misc: fix icmp
- fix ICMPv6 lookup FIB (don't reset sw_if_index[VLIB_TX] to -1) - add locally generated flag in ICMPv4 buffers (reflect ICMPv6) Type: fix Change-Id: If25a176a9952cbe185a030f8b136718af1bff9e8 Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'test/test_map.py')
-rw-r--r--test/test_map.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_map.py b/test/test_map.py
index 19e582426b2..565f7da6491 100644
--- a/test/test_map.py
+++ b/test/test_map.py
@@ -659,7 +659,7 @@ class TestMAP(VppTestCase):
p4 = p_ether / ip4_ttl_expired / payload
icmp4_reply = (
- IP(id=0, ttl=254, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
+ IP(id=0, ttl=255, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
/ ICMP(type="time-exceeded", code="ttl-zero-during-transit")
/ IP(src=self.pg0.remote_ip4, dst="192.168.0.1", ttl=0)
/ payload
@@ -673,7 +673,7 @@ class TestMAP(VppTestCase):
p4 = p_ether / ip4_ttl_expired / payload
icmp4_reply = (
- IP(id=0, ttl=254, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
+ IP(id=0, ttl=255, src=self.pg0.local_ip4, dst=self.pg0.remote_ip4)
/ ICMP(type="time-exceeded", code="ttl-zero-during-transit")
/ IP(src=self.pg0.remote_ip4, dst="192.168.0.1", ttl=1)
/ payload