iscsi-scst: Fix the build for CONFIG_IPV6=n

Signed-off-by: Igor Novgorodov <igor@novg.net>


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-08-11 22:02:27 +00:00
parent 4794e45e08
commit 7791086ba6

View File

@@ -3279,6 +3279,7 @@ static ssize_t iscsi_tcp_get_initiator_ip(struct iscsi_conn *conn,
"%pI4", &inet_sk(sk)->inet_daddr);
#endif
break;
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
case AF_INET6:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
pos = scnprintf(buf, size,
@@ -3293,6 +3294,7 @@ static ssize_t iscsi_tcp_get_initiator_ip(struct iscsi_conn *conn,
#endif
#endif
break;
#endif
default:
pos = scnprintf(buf, size, "Unknown family %d",
sk->sk_family);