target/iscsi: Keep local_ip as the actual sockaddr
authorAndy Grover <agrover@redhat.com>
Mon, 24 Aug 2015 17:26:04 +0000 (10:26 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 27 Aug 2015 06:27:16 +0000 (23:27 -0700)
commit69d755747d31c07a416064f251c2f408938fb67a
treea3a4e17c1d5ddb6c2e9b5ef62a3ffeb505921058
parent76c28f1fcfeb42b47f798fe498351ee1d60086ae
target/iscsi: Keep local_ip as the actual sockaddr

This is a more natural format that lets us format it with the appropriate
printk specifier as needed.

This also lets us handle v4-mapped ipv6 addresses a little more nicely, by
storing the addr as an actual v4 sockaddr in conn->local_sockaddr.

Finally, we no longer need to maintain variables for port, since this is
contained in sockaddr. Remove iscsi_np.np_port and iscsi_conn.local_port.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_login.c
drivers/target/iscsi/iscsi_target_tpg.c
include/target/iscsi/iscsi_target_core.h