1 #include "g_libntptest.h"
3 class numtohostTest : public libntptest {
6 TEST_F(numtohostTest, LoopbackNetNonResolve) {
7 /* A loopback address in 127.0.0.0/8 is chosen, and
8 * numtohost() should not try to resolve it unless
12 u_int32 input = 127*256*256*256 + 1*256 + 1; // 127.0.1.1
14 EXPECT_STREQ("127.0.1.1", numtohost(htonl(input)));