Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/test/conn/python/src/connection_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ def _connection_switch_arp_inspection(self):

# Check MAC address matches IP address
if (arp_packet.hwsrc == self._device_mac
and (arp_packet.psrc not in (self._device_ipv4_addr, '0.0.0.0'))):
and (arp_packet.psrc not in (
self._device_ipv4_addr,
'0.0.0.0'
)) and not arp_packet.psrc.startswith(
'169.254'
)):
LOGGER.info(f'Bad ARP packet detected for MAC: {self._device_mac}')
LOGGER.info(f'''ARP packet from IP {arp_packet.psrc}
does not match {self._device_ipv4_addr}''')
Expand Down