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 ifaddrs *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);