svn commit: r272985 - stable/10/contrib/ipfilter/lib
Cy Schubert
cy at FreeBSD.org
Sun Oct 12 16:46:04 UTC 2014
Author: cy
Date: Sun Oct 12 16:46:03 2014
New Revision: 272985
URL: https://svnweb.freebsd.org/changeset/base/272985
Log:
MFC r271970
ipv6 address for test.hosts.dots in wrong byte order.
Obtained from: ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)
Modified:
stable/10/contrib/ipfilter/lib/gethost.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/ipfilter/lib/gethost.c
==============================================================================
--- stable/10/contrib/ipfilter/lib/gethost.c Sun Oct 12 15:49:52 2014 (r272984)
+++ stable/10/contrib/ipfilter/lib/gethost.c Sun Oct 12 16:46:03 2014 (r272985)
@@ -25,10 +25,10 @@ int gethost(family, name, hostp)
}
#ifdef USE_INET6
if (family == AF_INET6) {
- hostp->i6[0] = 0xfe80aa55;
- hostp->i6[1] = 0x12345678;
- hostp->i6[2] = 0x5a5aa5a5;
- hostp->i6[3] = 0xfedcba98;
+ hostp->i6[0] = htonl(0xfe80aa55);
+ hostp->i6[1] = htonl(0x12345678);
+ hostp->i6[2] = htonl(0x5a5aa5a5);
+ hostp->i6[3] = htonl(0xfedcba98);
}
#endif
return 0;
More information about the svn-src-stable
mailing list