ipv6 address for test.hosts.dots in wrong byte order.

Approved by:	glebius (mentor)
Obtained from:	ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)
This commit is contained in:
Cy Schubert 2014-09-22 16:03:29 +00:00
parent c9b97e3bda
commit c5c5a79fce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271970

View File

@ -25,10 +25,10 @@ int gethost(family, name, hostp)
} }
#ifdef USE_INET6 #ifdef USE_INET6
if (family == AF_INET6) { if (family == AF_INET6) {
hostp->i6[0] = 0xfe80aa55; hostp->i6[0] = htonl(0xfe80aa55);
hostp->i6[1] = 0x12345678; hostp->i6[1] = htonl(0x12345678);
hostp->i6[2] = 0x5a5aa5a5; hostp->i6[2] = htonl(0x5a5aa5a5);
hostp->i6[3] = 0xfedcba98; hostp->i6[3] = htonl(0xfedcba98);
} }
#endif #endif
return 0; return 0;