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