0f22282fc3
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> |
||
---|---|---|
.. | ||
conn.c | ||
conn.h | ||
init_grp.c | ||
init_grp.h | ||
iscsi_rpc.c | ||
iscsi_subsystem.c | ||
iscsi.c | ||
iscsi.h | ||
Makefile | ||
md5.c | ||
md5.h | ||
param.c | ||
param.h | ||
portal_grp.c | ||
portal_grp.h | ||
spdk_iscsi.map | ||
task.c | ||
task.h | ||
tgt_node.c | ||
tgt_node.h |