From 90709037723015a75765bc2bb33769d482b75430 Mon Sep 17 00:00:00 2001 From: Tony Kuker Date: Fri, 26 Feb 2021 17:26:24 -0600 Subject: [PATCH] Temporarily remove MAC address filtering. It seems to cause issues --- src/raspberrypi/devices/scsi_daynaport.cpp | 32 ++++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/raspberrypi/devices/scsi_daynaport.cpp b/src/raspberrypi/devices/scsi_daynaport.cpp index 4d6ce26d..95181acc 100644 --- a/src/raspberrypi/devices/scsi_daynaport.cpp +++ b/src/raspberrypi/devices/scsi_daynaport.cpp @@ -238,23 +238,25 @@ int FASTCALL SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block) // being sent to the SCSI initiator. send_message_to_host = FALSE; - // Check if received packet destination MAC address matches the - // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes - // of the data. - if (memcmp(response->data, m_mac_addr, 6) == 0) { - send_message_to_host = TRUE; - } + // The following doesn't seem to work with unicast messages. Temporarily removing the filtering + // functionality. + /////// // Check if received packet destination MAC address matches the + /////// // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes + /////// // of the data. + /////// if (memcmp(response->data, m_mac_addr, 6) == 0) { + /////// send_message_to_host = TRUE; + /////// } - // Check to see if this is a broadcast message - if (memcmp(response->data, m_bcast_addr, 6) == 0) { - send_message_to_host = TRUE; - } + /////// // Check to see if this is a broadcast message + /////// if (memcmp(response->data, m_bcast_addr, 6) == 0) { + /////// send_message_to_host = TRUE; + /////// } - // Check to see if this is an AppleTalk Message - if (memcmp(response->data, m_apple_talk_addr, 6) == 0) { - - send_message_to_host = TRUE; - } + /////// // Check to see if this is an AppleTalk Message + /////// if (memcmp(response->data, m_apple_talk_addr, 6) == 0) { + /////// send_message_to_host = TRUE; + /////// } + send_message_to_host = TRUE; // TODO: We should check to see if this message is in the multicast // configuration from SCSI command 0x0D