tests: Change proxyarp_open LL src MAC check to match requirements

Now that there is a kernel patch for IPv6 ProxyARP that is capable of
using the non-AP STAs MAC address as the link layer source address in
NA, validate that behavior rather than the temporary check for BSSID.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-03-24 20:33:33 +02:00 committed by Jouni Malinen
parent 6ba7ebac8a
commit 05121d3564

View file

@ -3405,8 +3405,7 @@ def _test_proxyarp_open(dev, apdev, params, ebtables=False):
na = tshark_get_na(cap_dev0)
logger.info("dev0 seen NA: " + str(na))
# FIX: src mac addr is supposed to be addr1, not bssid
if [ addr0, bssid, 'aaaa:bbbb:dddd::2', 'aaaa:bbbb:cccc::2',
if [ addr0, addr1, 'aaaa:bbbb:dddd::2', 'aaaa:bbbb:cccc::2',
'aaaa:bbbb:dddd::2', addr1 ] not in na:
raise Exception("dev0 did not get NA for aaaa:bbbb:dddd::2")
@ -3420,8 +3419,7 @@ def _test_proxyarp_open(dev, apdev, params, ebtables=False):
na = tshark_get_na(cap_dev1)
logger.info("dev1 seen NA: " + str(na))
# FIX: src mac addr is supposed to be addr0, not bssid
if [ addr1, bssid, 'aaaa:bbbb:cccc::2', 'aaaa:bbbb:dddd::2',
if [ addr1, addr0, 'aaaa:bbbb:cccc::2', 'aaaa:bbbb:dddd::2',
'aaaa:bbbb:cccc::2', addr0 ] not in na:
raise Exception("dev1 did not get NA for aaaa:bbbb:cccc::2")
@ -3436,14 +3434,13 @@ def _test_proxyarp_open(dev, apdev, params, ebtables=False):
logger.info("dev2 seen NA: " + str(na))
# FIX: enable once kernel implementation for proxyarp IPv6 is fixed
# FIX: src mac addr is supposed to be addr0/addr1, not bssid
#if [ addr2, bssid, 'aaaa:bbbb:cccc::2', 'aaaa:bbbb:ff00::2',
#if [ addr2, addr0, 'aaaa:bbbb:cccc::2', 'aaaa:bbbb:ff00::2',
# 'aaaa:bbbb:cccc::2', addr0 ] not in na:
# raise Exception("dev2 did not get NA for aaaa:bbbb:cccc::2")
#if [ addr2, bssid, 'aaaa:bbbb:dddd::2', 'aaaa:bbbb:ff00::2',
#if [ addr2, addr1, 'aaaa:bbbb:dddd::2', 'aaaa:bbbb:ff00::2',
# 'aaaa:bbbb:dddd::2', addr1 ] not in na:
# raise Exception("dev2 did not get NA for aaaa:bbbb:dddd::2")
#if [ addr2, bssid, 'aaaa:bbbb:eeee::2', 'aaaa:bbbb:ff00::2',
#if [ addr2, addr1, 'aaaa:bbbb:eeee::2', 'aaaa:bbbb:ff00::2',
# 'aaaa:bbbb:eeee::2', addr1 ] not in na:
# raise Exception("dev2 did not get NA for aaaa:bbbb:eeee::2")