in-addr-util.c revision 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca
2N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
2N/A#include "in-addr-util.h"
2N/A return -EAFNOSUPPORT;
return -EAFNOSUPPORT;
unsigned family,
const union in_addr_union *a,
unsigned aprefixlen,
const union in_addr_union *b,
unsigned bprefixlen) {
assert(a);
assert(b);
return (x & nm) == 0;
if ((x & nm) != 0)
return -EAFNOSUPPORT;
assert(u);
if (prefixlen <= 0)
uint32_t c, n;
if (overflow)
return -EAFNOSUPPORT;
size_t l;
assert(u);
l = INET_ADDRSTRLEN;
l = INET6_ADDRSTRLEN;
return -EAFNOSUPPORT;
x = new(char, l);
return -ENOMEM;
errno = 0;
free(x);
*ret = x;
assert(s);
return -EAFNOSUPPORT;
errno = 0;
assert(s);
return -EINVAL;
static const char* const family_table[] = {