3 #include "ntp_stdlib.h"
9 void test_LoopbackNetNonResolve(void);
22 test_LoopbackNetNonResolve(void) {
23 /* A loopback address in 127.0.0.0/8 is chosen, and
24 * numtohost() should not try to resolve it unless
28 const u_int32 input = 127*256*256*256 + 1*256 + 1; // 127.0.1.1
30 TEST_ASSERT_EQUAL_STRING("127.0.1.1", numtohost(htonl(input)));