aboutsummaryrefslogtreecommitdiff
path: root/sbin/iscontrol/iscontrol.h
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2008-11-25 07:17:11 +0000
committerScott Long <scottl@FreeBSD.org>2008-11-25 07:17:11 +0000
commit3f3137fee5946f0c64456dfa13a6bcd17f8771bb (patch)
tree413f5b0f4f80fd3ec9f759e583d550deabbd83a4 /sbin/iscontrol/iscontrol.h
parentdfabb37be2c5516283add90b07ad43b44a3b840f (diff)
downloadsrc-3f3137fee5946f0c64456dfa13a6bcd17f8771bb.tar.gz
src-3f3137fee5946f0c64456dfa13a6bcd17f8771bb.zip
Big update to the iSCSI initiator code. Highlights include IPv6 support,
many bugs fixes, many more performance improvements. Submitted by: Danny Braniss M sbin/iscontrol/iscsi.conf.5 M sbin/iscontrol/iscontrol.8 M sbin/iscontrol/iscontrol.h M sbin/iscontrol/config.c M sbin/iscontrol/fsm.c M sbin/iscontrol/login.c M sbin/iscontrol/pdu.c M sbin/iscontrol/misc.c M sbin/iscontrol/auth_subr.c M sbin/iscontrol/iscontrol.c M sys/dev/iscsi/initiator/isc_cam.c M sys/dev/iscsi/initiator/iscsi.h M sys/dev/iscsi/initiator/isc_soc.c M sys/dev/iscsi/initiator/iscsi_subr.c M sys/dev/iscsi/initiator/iscsivar.h M sys/dev/iscsi/initiator/isc_subr.c M sys/dev/iscsi/initiator/iscsi.c M sys/dev/iscsi/initiator/isc_sm.c
Notes
Notes: svn path=/head/; revision=185289
Diffstat (limited to 'sbin/iscontrol/iscontrol.h')
-rw-r--r--sbin/iscontrol/iscontrol.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sbin/iscontrol/iscontrol.h b/sbin/iscontrol/iscontrol.h
index c93c35af8049..a89d7afd5f30 100644
--- a/sbin/iscontrol/iscontrol.h
+++ b/sbin/iscontrol/iscontrol.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2005 Daniel Braniss <danny@cs.huji.ac.il>
+ * Copyright (c) 2005-2008 Daniel Braniss <danny@cs.huji.ac.il>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -45,6 +45,12 @@ int vflag;
typedef int auth_t(void *sess);
+typedef struct {
+ char *address;
+ int port;
+ int pgt;
+} target_t;
+
typedef struct isess {
int flags;
#define SESS_CONNECTED BIT(0)
@@ -61,6 +67,7 @@ typedef struct isess {
isc_opt_t *op; // operational values
+ target_t target; // the Original target address
int fd; // the session fd
int soc; // the socket
iscsi_cam_t cam;