]> git.proxmox.com Git - ceph.git/blame - ceph/src/include/ipaddr.h
update sources to v12.1.0
[ceph.git] / ceph / src / include / ipaddr.h
CommitLineData
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 */
10const struct sockaddr *find_ip_in_subnet(const struct ifaddrs *addrs,
11 const struct sockaddr *net,
12 unsigned int prefix_len);
13
14
15bool parse_network(const char *s, struct sockaddr_storage *network, unsigned int *prefix_len);
16
17#endif