netaddr.c revision e12b02b62c0176646aad3097b3576cd47665e347
return (ISC_FALSE);
switch (a->family) {
case AF_INET:
return (ISC_FALSE);
case AF_INET6:
return (ISC_FALSE);
return (ISC_FALSE);
return (ISC_TRUE);
unsigned int prefixlen)
return (ISC_FALSE);
return (ISC_FALSE);
switch (a->family) {
case AF_INET:
case AF_INET6:
return (ISC_FALSE);
if (nbytes > 0) {
return (ISC_FALSE);
if (nbits > 0) {
return (ISC_FALSE);
return (ISC_TRUE);
unsigned int alen;
int zlen;
const void *type;
case AF_INET:
case AF_INET6:
return (ISC_R_FAILURE);
if (r == NULL)
return (ISC_R_FAILURE);
zlen = 0;
if (zlen < 0)
return (ISC_R_FAILURE);
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);
switch (s->family) {
case AF_INET:
case AF_INET6:
ipbytes = 0;
return (ISC_R_NOTIMPLEMENTED);
for (i = 0; i < ipbytes; i++) {
nbytes = i;
if (i < ipbytes) {
unsigned int c = p[nbytes];
return (ISC_R_MASKNONCONTIG);
for (; i < ipbytes; i++) {
return (ISC_R_MASKNONCONTIG);
return (ISC_R_SUCCESS);
switch (family) {
case AF_INET:
t->zone = 0;
case AF_INET6:
#ifdef ISC_PLATFORM_HAVESCOPEID
t->zone = 0;
INSIST(0);
case AF_INET:
case AF_INET6:
case AF_INET:
return (ISC_FALSE);
case AF_INET6:
return (ISC_FALSE);
case AF_INET:
return (ISC_FALSE);
case AF_INET6:
return (ISC_FALSE);
memset(t, 0, sizeof(*t));