]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: For TCP/RDMA, compare IP addresses with nvme_ipaddrs_eq()
authorMartin Belanger <martin.belanger@dell.com>
Wed, 2 Aug 2023 13:44:35 +0000 (09:44 -0400)
committerDaniel Wagner <wagi@monom.org>
Thu, 7 Sep 2023 16:11:32 +0000 (18:11 +0200)
commit70c99f98d44fdf8d2d5b00a1a447353e2961f001
tree357e476a7db078bd5c672a1a36e8ca517c2d1598
parent0ba431273e8a0adca558bccc63fd6e0ffd6b8bfe
fabrics: For TCP/RDMA, compare IP addresses with nvme_ipaddrs_eq()

These are the same changes we've already made to __nvme_lookup_ctrl
in libnvme. IP addresses (especially IPv6) cannot be compared with
a simple strcmp() or strcmpcase().

Also, for consistency with libnvme and improved readability,
replace strcmp0()/strcmpcase0() by streq0()/streqcase0().

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
fabrics.c