]> git.infradead.org Git - users/sagi/libnvme.git/commit
util: Add functions to parse the system's interfaces
authorMartin Belanger <martin.belanger@dell.com>
Fri, 18 Aug 2023 01:28:57 +0000 (21:28 -0400)
committerDaniel Wagner <wagi@monom.org>
Wed, 30 Aug 2023 15:21:59 +0000 (17:21 +0200)
commitead417d45b3e7409e217224227f5c2015a272a63
treebfc9112f735437f2b54a5979dd29d48d72bbbe05
parent184225a6ff6f8d3a769250edd241f08204226269
util: Add functions to parse the system's interfaces

1) nvme_iface_matching_addr() identifies which interface owns a
specific IP address.

2) nvme_iface_primary_addr_matches() checks that the primary IP
address of a given interface matches a specific IP address.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
src/nvme/util.c
src/nvme/util.h