Revert "Use unicast instead of broadcast as ethernet destination in test_apf_drop_ethercat"

This reverts commit 46102348e0.

Reason for revert: mistakenly submitted.

Change-Id: I6072a9828a8cc0633ca35ea2ecf7707f2b3573a1
This commit is contained in:
Maciej Żenczykowski 2024-09-26 18:11:41 +00:00 • committed by Gerrit Code Review
commit c3eccf9ef4
2 changed files with 1 additions and 4 deletions

View file

@ -50,9 +50,6 @@ class ApfTestBase(multi_devices_test_base.MultiDevicesTestBase):
self.server_mac_address = apf_utils.get_hardware_address(
self.serverDevice, self.server_iface_name
)
self.client_mac_address = apf_utils.get_hardware_address(
self.clientDevice, self.client_iface_name
)
# Enable doze mode to activate APF.
adb_utils.set_doze_mode(self.clientDevice, True)

View file

@ -53,7 +53,7 @@ class ApfV4Test(apf_test_base.ApfTestBase, parameterized.TestCase):
) # Declare inputs for state_str and expected_result.
def test_apf_drop_ethertype_not_allowed(self, blocked_ether_type):
# Ethernet header (14 bytes).
packet = self.client_mac_address.replace(":", "") # Destination MAC
packet = ETHER_BROADCAST_ADDR # Destination MAC (broadcast)
packet += self.server_mac_address.replace(":", "") # Source MAC
packet += blocked_ether_type