X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_ip6.py;h=dd29041c8987c37bff0205f77a2ac5587970d56a;hb=31a4aa7b354dcef292c0ddaf8fbae915938a5d23;hp=5dc7269f203e354c2c2db66d33479b9ddc38fb44;hpb=91adf2449f23b9362fa6a07315e83548fe7c1c4b;p=vpp.git diff --git a/test/test_ip6.py b/test/test_ip6.py index 5dc7269f203..dd29041c898 100644 --- a/test/test_ip6.py +++ b/test/test_ip6.py @@ -735,9 +735,23 @@ class TestIPv6(TestIPv6ND): "RS sourced from link-local", dst_ip=ll) + # + # Source an RS from a link local address + # Ensure suppress also applies to solicited RS + # + self.pg0.ip6_ra_config(send_unicast=1, suppress=1) + ll = mk_ll_addr(self.pg0.remote_mac) + p = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / + IPv6(dst=self.pg0.local_ip6, src=ll) / + ICMPv6ND_RS()) + pkts = [p] + self.send_and_assert_no_replies(self.pg0, pkts, + "Suppressed RS from link-local") + # # Send the RS multicast # + self.pg0.ip6_ra_config(no=1, suppress=1) # Reset suppress flag to zero self.pg0.ip6_ra_config(send_unicast=1) dmac = in6_getnsmac(inet_pton(AF_INET6, "ff02::2")) ll = mk_ll_addr(self.pg0.remote_mac) @@ -757,7 +771,7 @@ class TestIPv6(TestIPv6ND): # If we happen to pick up the periodic RA at this point then so be it, # it's not an error. # - self.pg0.ip6_ra_config(send_unicast=1, suppress=1) + self.pg0.ip6_ra_config(send_unicast=1, suppress=0) p = (Ether(dst=dmac, src=self.pg0.remote_mac) / IPv6(dst="ff02::2", src="::") / ICMPv6ND_RS())