Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / include / ipaddr.h
1 #ifndef CEPH_IPADDR_H
2 #define CEPH_IPADDR_H
3
4 /*
5   Find an IP address that is in the wanted subnet.
6
7   If there are multiple matches, the first one is returned; this order
8   is system-dependent and should not be relied on.
9  */
10 const struct ifaddrs *find_ip_in_subnet(const struct ifaddrs *addrs,
11                                          const struct sockaddr *net,
12                                          unsigned int prefix_len);
13
14
15 bool parse_network(const char *s, struct sockaddr_storage *network, unsigned int *prefix_len);
16
17 #endif