*/
bool have_local_addr(CephContext *cct, const std::list<entity_addr_t>& ls, entity_addr_t *match);
+/**
+ * filter the addresses in @c ifa with specified interfaces, networks and IPv
+ *
+ * @param cct
+ * @param ifa a list of network interface addresses to be filtered
+ * @param ipv bitmask of CEPH_PICK_ADDRESS_IPV4 and CEPH_PICK_ADDRESS_IPV6.
+ * it is used to filter the @c networks
+ * @param networks a comma separated list of networks as the allow list. only
+ * the addresses in the specified networks are allowed. all addresses
+ * are accepted if it is empty.
+ * @param interfaces a comma separated list of interfaces for the allow list.
+ * all addresses are accepted if it is empty
+ */
const struct sockaddr *find_ip_in_subnet_list(
CephContext *cct,
const struct ifaddrs *ifa,