1
0
Fork 0

Merging upstream version 1.6.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 10:12:19 +01:00
parent adbb3a10cc
commit 6add9877e4
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
871 changed files with 8481 additions and 1502 deletions

View file

@ -598,3 +598,52 @@ Returns error code if generating of random number fails.
true if addr1 == addr2. false otherwise.
.. c:function:: const char * nvme_iface_matching_addr (const struct ifaddrs *iface_list, const char *addr)
Get interface matching **addr**
**Parameters**
``const struct ifaddrs *iface_list``
Interface list returned by getifaddrs()
``const char *addr``
Address to match
**Description**
Parse the interface list pointed to by **iface_list** looking
for the interface that has **addr** as one of its assigned
addresses.
**Return**
The name of the interface that owns **addr** or NULL.
.. c:function:: bool nvme_iface_primary_addr_matches (const struct ifaddrs *iface_list, const char *iface, const char *addr)
Check that interface's primary address matches
**Parameters**
``const struct ifaddrs *iface_list``
Interface list returned by getifaddrs()
``const char *iface``
Interface to match
``const char *addr``
Address to match
**Description**
Parse the interface list pointed to by **iface_list** and looking for
interface **iface**. The get its primary address and check if it matches
**addr**.
**Return**
true if a match is found, false otherwise.