diff --git a/cpp/devices/scsi_host_bridge.cpp b/cpp/devices/scsi_host_bridge.cpp index 93fd0715c2..549f119dfa 100644 --- a/cpp/devices/scsi_host_bridge.cpp +++ b/cpp/devices/scsi_host_bridge.cpp @@ -338,7 +338,7 @@ void SCSIBR::GetPacketBuf(vector& buf, int index) packet_enable = false; } -void SCSIBR::SendPacket(span buf, int len) +void SCSIBR::SendPacket(span buf, int len) const { tap.Send(buf.data(), len); } diff --git a/cpp/devices/scsi_host_bridge.h b/cpp/devices/scsi_host_bridge.h index d2d3ff0a76..5796822002 100644 --- a/cpp/devices/scsi_host_bridge.h +++ b/cpp/devices/scsi_host_bridge.h @@ -52,7 +52,7 @@ class SCSIBR : public PrimaryDevice, public ByteWriter void SetMacAddr(span); // Set MAC address void ReceivePacket(); // Receive a packet void GetPacketBuf(vector&, int); // Get a packet - void SendPacket(span, int); // Send a packet + void SendPacket(span, int) const; // Send a packet CTapDriver tap; // TAP driver bool m_bTapEnable = false; // TAP valid flag