/*
* Copyright (C) 1999-2001, 2004, 2007, 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: t_sockaddr.c,v 1.14 2007/06/19 23:47:00 tbox Exp $ */
#include <config.h>
#include <isc/sockaddr.h>
static int
test_isc_sockaddr_eqaddrprefix(void) {
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_PASS;
}
static void
t1(void) {
int result;
"isc_sockaddr_eqaddrprefix() returns ISC_TRUE when "
"prefixes of a and b are equal, and ISC_FALSE when "
"they are not equal");
}
static int
test_isc_netaddr_masktoprefixlen(void) {
unsigned int plen;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
return T_FAIL;
if (plen != 0)
return T_FAIL;
return T_FAIL;
if (plen != 31)
return T_FAIL;
return T_FAIL;
if (plen != 32)
return T_FAIL;
return T_FAIL;
if (plen != 24)
return T_FAIL;
return T_PASS;
}
static void
t2(void) {
int result;
"isc_netaddr_masktoprefixlen() calculates "
"correct prefix lengths ");
}
};
#ifdef WIN32
int
}
#endif