]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Ignore fe80::ff:fe00:300 NS from AP for now in proxyarp tests
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 15:17:05 +0000 (17:17 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 15:17:05 +0000 (17:17 +0200)
This NS seems to go out from the AP interface every now and then and it
makes proxyarp_open_ebtables_ipv6 fails inconveniently often. That frame
should not really be there, but it's not clear what exactly is needed to
stop it going through. It does not come from the test operations
themselves, so ignore it for now to keep test results cleaner.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index 864064b3d7587f8f3c82ee7c77be6f6b22ed47b1..4c1caca37b7be40be3aca87ba374e2c521259f6b 100644 (file)
@@ -5148,7 +5148,12 @@ def _test_proxyarp_open_ipv6(dev, apdev, params, ebtables=False):
 
     if ebtables:
         for req in ns:
-            if req[1] != addr0:
+            if req[1] == bssid and req[0] == "33:33:ff:" + bssid[9:] and \
+               req[3] == 'ff02::1:ff00:300' and req[4] == 'fe80::ff:fe00:300':
+                # At least for now, ignore this special case until the kernel
+                # can be prevented from sending it out.
+                logger.info("dev0: Ignore NS from AP to own local addr: " + str(req))
+            elif req[1] != addr0:
                 raise Exception("Unexpected foreign NS on dev0: " + str(req))
 
     ns = tshark_get_ns(cap_dev1)
@@ -5162,7 +5167,12 @@ def _test_proxyarp_open_ipv6(dev, apdev, params, ebtables=False):
 
     if ebtables:
         for req in ns:
-            if req[1] != addr1:
+            if req[1] == bssid and req[0] == "33:33:ff:" + bssid[9:] and \
+               req[3] == 'ff02::1:ff00:300' and req[4] == 'fe80::ff:fe00:300':
+                # At least for now, ignore this special case until the kernel
+                # can be prevented from sending it out.
+                logger.info("dev1: Ignore NS from AP to own local addr: " + str(req))
+            elif req[1] != addr1:
                 raise Exception("Unexpected foreign NS on dev1: " + str(req))
 
     ns = tshark_get_ns(cap_dev2)