Module Name: src
Committed By: darrenr
Date: Sun Jun 29 05:06:46 UTC 2014
Modified Files:
src/external/bsd/ipf/dist/lib: gethost.c
Log Message:
3561690 ipv6 address for test.hosts.dots in wrong byte order
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/ipf/dist/lib/gethost.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ipf/dist/lib/gethost.c
diff -u src/external/bsd/ipf/dist/lib/gethost.c:1.4 src/external/bsd/ipf/dist/lib/gethost.c:1.5
--- src/external/bsd/ipf/dist/lib/gethost.c:1.4 Thu Jun 12 22:15:25 2014
+++ src/external/bsd/ipf/dist/lib/gethost.c Sun Jun 29 05:06:46 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: gethost.c,v 1.4 2014/06/12 22:15:25 joerg Exp $ */
+/* $NetBSD: gethost.c,v 1.5 2014/06/29 05:06:46 darrenr Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -26,10 +26,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;