Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 Test.c peculiarties

closed
nobody
None
5
2004-01-29
2002-11-07
Anonymous
No

a question from test.c
line 126.
int inquiry(unsigned long long tid, unsigned lun,
unsigned *device_type) {
unsigned char data[36], cdb[16];
INITIATOR_CMD_T cmd;
ISCSI_SCSI_CMD_T args;

memset(cdb, 0, 16);
cdb[0] = INQUIRY;
cdb[1] = lun<<5;
cdb[4] = 35;
memset(&args, 0, sizeof(ISCSI_SCSI_CMD_T));
args.input = 1;
args.trans_len = 36; <----- WHAT IS the EXTRA bit
for????
args.cdb = cdb;
args.lun = lun;
args.recv_data = data;
memset(&cmd, 0, sizeof(INITIATOR_CMD_T));
cmd.isid = tid;

Discussion

  • Joel Clark
    Joel Clark
    2003-11-18

    Logged In: YES
    user_id=818705

    I don't see an extra bit. Typical usage is "for (i = 0; i <
    args.trans_len; i++) {...."

     
  • Joel Clark
    Joel Clark
    2003-11-18

    Logged In: YES
    user_id=818705

    I don't see an extra bit. Typical usage is "for (i = 0; i <
    args.trans_len; i++) {...."

     
  • Joel Clark
    Joel Clark
    2004-01-29

    • status: open --> closed