mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-28 14:34:36 +00:00
Removed unused argument, replaced bool
This commit is contained in:
parent
173c40799e
commit
5770e7e2db
@ -112,7 +112,7 @@ SCSIDaynaPort::~SCSIDaynaPort()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SCSIDaynaPort::Open(const Filepath& path, BOOL attn)
|
void SCSIDaynaPort::Open(const Filepath& path)
|
||||||
{
|
{
|
||||||
LOGTRACE("SCSIDaynaPort Open");
|
LOGTRACE("SCSIDaynaPort Open");
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ int SCSIDaynaPort::Inquiry(const DWORD *cdb, BYTE *buffer)
|
|||||||
int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
|
int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
|
||||||
{
|
{
|
||||||
int rx_packet_size = 0;
|
int rx_packet_size = 0;
|
||||||
BOOL send_message_to_host;
|
bool send_message_to_host;
|
||||||
scsi_resp_read_t *response = (scsi_resp_read_t*)buf;
|
scsi_resp_read_t *response = (scsi_resp_read_t*)buf;
|
||||||
scsi_cmd_read_6_t *command = (scsi_cmd_read_6_t*)cdb;
|
scsi_cmd_read_6_t *command = (scsi_cmd_read_6_t*)cdb;
|
||||||
int read_count = 0;
|
int read_count = 0;
|
||||||
@ -245,7 +245,7 @@ int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
|
|||||||
|
|
||||||
// This is a very basic filter to prevent unnecessary packets from
|
// This is a very basic filter to prevent unnecessary packets from
|
||||||
// being sent to the SCSI initiator.
|
// being sent to the SCSI initiator.
|
||||||
send_message_to_host = FALSE;
|
send_message_to_host = false;
|
||||||
|
|
||||||
// The following doesn't seem to work with unicast messages. Temporarily removing the filtering
|
// The following doesn't seem to work with unicast messages. Temporarily removing the filtering
|
||||||
// functionality.
|
// functionality.
|
||||||
@ -253,19 +253,19 @@ int SCSIDaynaPort::Read(const DWORD *cdb, BYTE *buf, DWORD block)
|
|||||||
/////// // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes
|
/////// // DaynaPort MAC. For IP packets, the mac_address will be the first 6 bytes
|
||||||
/////// // of the data.
|
/////// // of the data.
|
||||||
/////// if (memcmp(response->data, m_mac_addr, 6) == 0) {
|
/////// if (memcmp(response->data, m_mac_addr, 6) == 0) {
|
||||||
/////// send_message_to_host = TRUE;
|
/////// send_message_to_host = true;
|
||||||
/////// }
|
/////// }
|
||||||
|
|
||||||
/////// // Check to see if this is a broadcast message
|
/////// // Check to see if this is a broadcast message
|
||||||
/////// if (memcmp(response->data, m_bcast_addr, 6) == 0) {
|
/////// if (memcmp(response->data, m_bcast_addr, 6) == 0) {
|
||||||
/////// send_message_to_host = TRUE;
|
/////// send_message_to_host = true;
|
||||||
/////// }
|
/////// }
|
||||||
|
|
||||||
/////// // Check to see if this is an AppleTalk Message
|
/////// // Check to see if this is an AppleTalk Message
|
||||||
/////// if (memcmp(response->data, m_apple_talk_addr, 6) == 0) {
|
/////// if (memcmp(response->data, m_apple_talk_addr, 6) == 0) {
|
||||||
/////// send_message_to_host = TRUE;
|
/////// send_message_to_host = true;
|
||||||
/////// }
|
/////// }
|
||||||
send_message_to_host = TRUE;
|
send_message_to_host = true;
|
||||||
|
|
||||||
// TODO: We should check to see if this message is in the multicast
|
// TODO: We should check to see if this message is in the multicast
|
||||||
// configuration from SCSI command 0x0D
|
// configuration from SCSI command 0x0D
|
||||||
|
@ -59,7 +59,7 @@ public:
|
|||||||
// Constructor
|
// Constructor
|
||||||
~SCSIDaynaPort();
|
~SCSIDaynaPort();
|
||||||
// Destructor
|
// Destructor
|
||||||
void Open(const Filepath& path, BOOL attn = TRUE);
|
void Open(const Filepath& path);
|
||||||
// Capture packets
|
// Capture packets
|
||||||
|
|
||||||
// commands
|
// commands
|
||||||
|
Loading…
x
Reference in New Issue
Block a user