Spdk/module
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
..
accel accel: add API to cancel a batch sequence 2020-07-27 22:43:40 +00:00
bdev module/bdev: add a function to remove trid from ctrlr. 2020-08-07 15:06:01 +00:00
blob lib/bdev: Add spdk_bdev_abort API 2020-06-08 09:28:27 +00:00
blobfs mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
env_dpdk mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
event sock: Save socket subsystem configuration in JSON format 2020-07-13 08:40:15 +00:00
sock lib/iscsi: Check if IP address-port pair is valid as redirect portal 2020-08-11 08:27:43 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00