summaryrefslogtreecommitdiff
path: root/usr/config.h
diff options
context:
space:
mode:
authoraaizman <aaizman@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2005-07-26 02:10:47 +0000
committeraaizman <aaizman@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2005-07-26 02:10:47 +0000
commit899c6f702368e134818677daba8c7184ee080b62 (patch)
treeadc063d55aed62f10a6cd10c0a4a2a05259a577b /usr/config.h
parent767b0c4cef1f13e85b1f2ea2d9808c9fa3727da2 (diff)
downloadopen-iscsi-899c6f702368e134818677daba8c7184ee080b62.tar.gz
FUJITA Tomonori: added IPv6 support (user land)
git-svn-id: svn://svn.berlios.de/open-iscsi@379 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'usr/config.h')
-rw-r--r--usr/config.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/config.h b/usr/config.h
index 2534db4..4db24a8 100644
--- a/usr/config.h
+++ b/usr/config.h
@@ -20,6 +20,7 @@
#ifndef CONFIG_H
#define CONFIG_H
+#include <netdb.h>
#include "types.h"
#include "auth.h" /* for the username and password sizes */
@@ -134,7 +135,7 @@ struct iscsi_session_operational_config {
#define CONFIG_DIGEST_PREFER_OFF 3
struct iscsi_sendtargets_config {
- char address[16];
+ char address[NI_MAXHOST];
int port;
int continuous;
int send_async_text;
@@ -143,7 +144,7 @@ struct iscsi_sendtargets_config {
};
struct iscsi_slp_config {
- char address[16]; /* for unicast */
+ char address[NI_MAXHOST]; /* for unicast */
int port; /* for unicast */
char *scopes;
char *interfaces; /* for multicast, list of interfaces names,
@@ -165,7 +166,7 @@ typedef enum discovery_type {
typedef struct conn_rec {
iscsi_startup_e startup;
- char address[16];
+ char address[NI_MAXHOST];
int port;
struct iscsi_tcp_config tcp;
struct iscsi_connection_timeout_config timeo;