diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-08-09 12:36:36 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-08-09 12:36:36 +0000 |
commit | c201d4532c499221abc67df4802b7095b1017674 (patch) | |
tree | 43342de6f254d6434829cb76dee008ac438a8d6d /sbin/iscontrol/login.c | |
parent | 1dd592007a42ea9e8ab8e07e060a671789e5799a (diff) | |
download | src-c201d4532c499221abc67df4802b7095b1017674.tar.gz src-c201d4532c499221abc67df4802b7095b1017674.zip |
- Add full support for header / data digests.
- Increase target limit from 4 to 64; this limit will be removed entirely
at a later time.
- Improve recovery from lost network connections.
- Fix some potential deadlocks and a serious memory leak.
- Fix incorrect use of MH_ALIGN (instead of M_ALIGN), which makes no
practical difference, but triggers a KASSERT with INVARIANTS.
- Fix some warnings in iscontrol(8) and improve the man page somewhat.
Submitted by: Daniel Braniss <danny@cs.huji.ac.il>
Sponsored by: Dansk Scanning A/S, Data Robotics Inc.
Notes
Notes:
svn path=/head/; revision=211095
Diffstat (limited to 'sbin/iscontrol/login.c')
-rw-r--r-- | sbin/iscontrol/login.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/iscontrol/login.c b/sbin/iscontrol/login.c index ec17f211573a..e2a9e5f5edff 100644 --- a/sbin/iscontrol/login.c +++ b/sbin/iscontrol/login.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2005-2008 Daniel Braniss <danny@cs.huji.ac.il> + * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> -#include "iscsi.h" +#include <dev/iscsi/initiator/iscsi.h> #include "iscontrol.h" static char *status_class1[] = { @@ -107,7 +107,7 @@ getkeyval(char *key, pdu_t *pp) debug_called(3); len = pp->ds_len; - ptr = (char *)pp->ds; + ptr = (char *)pp->ds_addr; klen = strlen(key); while(len > klen) { if(strncmp(key, ptr, klen) == 0) @@ -163,7 +163,7 @@ processParams(isess_t *sess, pdu_t *pp) debug_called(3); len = pp->ds_len; - ptr = (char *)pp->ds; + ptr = (char *)pp->ds_addr; while(len > 0) { if(vflag > 1) printf("got: len=%d %s\n", len, ptr); @@ -233,7 +233,7 @@ handleLoginResp(isess_t *sess, pdu_t *pp) st_class = status >> 8; if(status) { - int st_detail = status & 0xff; + uint st_detail = status & 0xff; switch(st_class) { case 1: // Redirect |