]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_IPADDR_H |
2 | #define CEPH_IPADDR_H | |
3 | ||
7c673cae FG |
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 | */ | |
b5b8bbf5 | 10 | const struct ifaddrs *find_ip_in_subnet(const struct ifaddrs *addrs, |
7c673cae FG |
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 |