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: 4 additions & 3 deletions modules/test/conn/python/src/connection_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ def _connection_switch_arp_inspection(self):

# Check MAC address matches IP address
if (arp_packet.hwsrc == self._device_mac and
arp_packet.psrc != self._device_ipv4_addr):
(arp_packet.psrc != self._device_ipv4_addr
and arp_packet.psrc != '0.0.0.0')):
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}''')
LOGGER.info(f'''ARP packet from IP {arp_packet.psrc}
does not match {self._device_ipv4_addr}''')
return False, 'Device is sending false ARP response'

if no_arp:
Expand Down