summaryrefslogtreecommitdiffstats
path: root/test/test_ip6.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-06-17 12:23:15 +0000
committerOle Trøan <otroan@employees.org>2019-06-18 08:45:30 +0000
commite849865fb8819a3980658b251a8e24595170d436 (patch)
tree8217f2fc1eb7c3acb99bca4190d278c1cbb832c1 /test/test_ip6.py
parent3860a77e9ff1d945259301045db339667c2c2c6d (diff)
ip: reassembly-separate feature and custom code
This change is made fix a crash, because is_feature flag semantics turn out to be different from "custom app code" semantics. Introduce a flag which custom plugins/apps can use to instead of tying that code to is_feature flag. Change-Id: Ief5898711e68529f9306cfac54c4dc9b3650f9e3 Ticket: N/A Type: fix Fixes: 21aa8f1022590b8b5caf819b4bbd485de0f1dfe5 Signed-off-by: Klement Sekera <ksekera@cisco.com> Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_ip6.py')
-rw-r--r--test/test_ip6.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_ip6.py b/test/test_ip6.py
index b64dbc1d871..4f267b815c4 100644
--- a/test/test_ip6.py
+++ b/test/test_ip6.py
@@ -359,6 +359,24 @@ class TestIPv6(TestIPv6ND):
"Interface %s: Packet expected from interface %s "
"didn't arrive" % (dst_if.name, i.name))
+ def test_next_header_anomaly(self):
+ """ IPv6 next header anomaly test
+
+ Test scenario:
+ - ipv6 next header field = Fragment Header (44)
+ - next header is ICMPv6 Echo Request
+ - wait for reassembly
+ """
+ pkt = (Ether(src=self.pg0.local_mac, dst=self.pg0.remote_mac) /
+ IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6, nh=44) /
+ ICMPv6EchoRequest())
+
+ self.pg0.add_stream(pkt)
+ self.pg_start()
+
+ # wait for reassembly
+ self.sleep(10)
+
def test_fib(self):
""" IPv6 FIB test