numam-spdk/lib/iscsi
Shuhei Matsumoto 0f22282fc3 lib/iscsi: Check if IP address-port pair is valid as redirect portal
Add a helper function iscsi_parse_redirect_addr() to validate the
passed IP address-port pair.

iSCSI login redirection will support only numeric IP address and
TCP port, and add AI_NUMERICSERV and AI_NUMERICHOST.

This function is almost same as nvme_tcp_parse_addr() and
nvme_rdma_parse_addr().

Besides, update error log in posix_sock_create() to use
gai_strerror(). gai_strerror() will provide more accurate
information as done by nvme_tcp_parse_addr() and nvme_rdma_parse_addr().

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I65c6de81a64dcb26551ce796172d0458e1c298a7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3357
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-08-11 08:27:43 +00:00
..
conn.c lib/iscsi: Add pg_tag to the 2nd parameter of iscsi_conns_request_logout() 2020-08-07 15:06:34 +00:00
conn.h lib/iscsi: Add pg_tag to the 2nd parameter of iscsi_conns_request_logout() 2020-08-07 15:06:34 +00:00
init_grp.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in init_grp.h 2020-04-20 07:38:29 +00:00
init_grp.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in init_grp.h 2020-04-20 07:38:29 +00:00
iscsi_rpc.c lib/iscsi: Rename link pointer to pg->connections from link to pg_link 2020-07-13 08:39:50 +00:00
iscsi_subsystem.c lib/iscsi: Rename link pointer to pg->connections from link to pg_link 2020-07-13 08:39:50 +00:00
iscsi.c lib/iscsi: Remove unused the param iaddr from iscsi_send_tgts() 2020-08-07 15:06:34 +00:00
iscsi.h lib/iscsi: Remove inclusion of SPDK event library except shared memory ID for iSCSI top application 2020-06-01 09:20:41 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
md5.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
md5.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
param.c iscsi: Add DataSequenceInOrder in discovery_ignored_param 2020-06-11 19:51:04 +00:00
param.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in param.h 2020-04-20 07:38:29 +00:00
portal_grp.c lib/iscsi: Check if IP address-port pair is valid as redirect portal 2020-08-11 08:27:43 +00:00
portal_grp.h lib/iscsi: Check if IP address-port pair is valid as redirect portal 2020-08-11 08:27:43 +00:00
spdk_iscsi.map lib/iscsi: add a map file 2020-04-24 07:06:52 +00:00
task.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in task.h 2020-04-20 07:38:29 +00:00
task.h lib/iscsi: Replace the "spdk_" prefix by "iscsi_" for internal APIs declared in iscsi.h 2020-04-20 07:38:29 +00:00
tgt_node.c lib/iscsi: Check if IP address-port pair is valid as redirect portal 2020-08-11 08:27:43 +00:00
tgt_node.h lib/iscsi: Remove unused the param iaddr from iscsi_send_tgts() 2020-08-07 15:06:34 +00:00