]>
git.proxmox.com Git - ceph.git/blob - ceph/src/include/ipaddr.h
5 Find an IP address that is in the wanted subnet.
7 If there are multiple matches, the first one is returned; this order
8 is system-dependent and should not be relied on.
10 const struct sockaddr
*find_ip_in_subnet(const struct ifaddrs
*addrs
,
11 const struct sockaddr
*net
,
12 unsigned int prefix_len
);
15 bool parse_network(const char *s
, struct sockaddr_storage
*network
, unsigned int *prefix_len
);