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