summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2014-10-12 16:46:03 +0000
committercy <cy@FreeBSD.org>2014-10-12 16:46:03 +0000
commit40f9831d422f95dc05bd069d1fd18160a4ee2dee (patch)
tree74e60daa0d6fa3b86bd9c7f6b8e25ad1542bc319
parenta45382b275e7a354d96ed2689bc0de4d258dc84d (diff)
downloadFreeBSD-src-40f9831d422f95dc05bd069d1fd18160a4ee2dee.zip
FreeBSD-src-40f9831d422f95dc05bd069d1fd18160a4ee2dee.tar.gz
MFC r271970
ipv6 address for test.hosts.dots in wrong byte order. Obtained from: ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)
-rw-r--r--contrib/ipfilter/lib/gethost.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/ipfilter/lib/gethost.c b/contrib/ipfilter/lib/gethost.c
index a11b09b..0206e87 100644
--- a/contrib/ipfilter/lib/gethost.c
+++ b/contrib/ipfilter/lib/gethost.c
@@ -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;
OpenPOWER on IntegriCloud