Lines Matching refs:addresses
18 const struct in_addr *addresses, in serialize_in_addrs() argument
23 assert(addresses); in serialize_in_addrs()
33 if (predicate && !predicate(&addresses[i])) in serialize_in_addrs()
38 fputs(inet_ntop(AF_INET, &addresses[i], sbuf, sizeof(sbuf)), f); in serialize_in_addrs()
47 _cleanup_free_ struct in_addr *addresses = NULL; in deserialize_in_addrs() local
64 new_addresses = reallocarray(addresses, size + 1, sizeof(struct in_addr)); in deserialize_in_addrs()
68 addresses = new_addresses; in deserialize_in_addrs()
70 r = inet_pton(AF_INET, word, &(addresses[size])); in deserialize_in_addrs()
77 *ret = size > 0 ? TAKE_PTR(addresses) : NULL; in deserialize_in_addrs()
82 void serialize_in6_addrs(FILE *f, const struct in6_addr *addresses, size_t size, bool *with_leading… in serialize_in6_addrs() argument
84 assert(addresses); in serialize_in6_addrs()
96 fputs(inet_ntop(AF_INET6, addresses+i, buffer, sizeof(buffer)), f); in serialize_in6_addrs()
102 _cleanup_free_ struct in6_addr *addresses = NULL; in deserialize_in6_addrs() local
119 new_addresses = reallocarray(addresses, size + 1, sizeof(struct in6_addr)); in deserialize_in6_addrs()
123 addresses = new_addresses; in deserialize_in6_addrs()
125 r = inet_pton(AF_INET6, word, &(addresses[size])); in deserialize_in6_addrs()
132 *ret = TAKE_PTR(addresses); in deserialize_in6_addrs()