|
@@ -643,6 +643,11 @@ static void iscsi_rx_discard ( struct iscsi_session *iscsi __unused,
|
643
|
643
|
static void iscsi_rx_bhs ( struct iscsi_session *iscsi, void *data,
|
644
|
644
|
size_t len, size_t remaining __unused ) {
|
645
|
645
|
memcpy ( &iscsi->rx_bhs.bytes[iscsi->rx_offset], data, len );
|
|
646
|
+ if ( ( iscsi->rx_offset + len ) >= sizeof ( iscsi->rx_bhs ) ) {
|
|
647
|
+ DBG ( "iSCSI %p received PDU opcode %#x len %#lx\n",
|
|
648
|
+ iscsi, iscsi->rx_bhs.common.opcode,
|
|
649
|
+ ISCSI_DATA_LEN ( iscsi->rx_bhs.common.lengths ) );
|
|
650
|
+ }
|
646
|
651
|
}
|
647
|
652
|
|
648
|
653
|
/**
|