Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ipf/dist/lib 3561690 ipv6 address for test.host...
details: https://anonhg.NetBSD.org/src/rev/5100b6383c7b
branches: trunk
changeset: 330207:5100b6383c7b
user: darrenr <darrenr%NetBSD.org@localhost>
date: Sun Jun 29 05:06:46 2014 +0000
description:
3561690 ipv6 address for test.hosts.dots in wrong byte order
diffstat:
external/bsd/ipf/dist/lib/gethost.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r c9bc16a57d54 -r 5100b6383c7b external/bsd/ipf/dist/lib/gethost.c
--- a/external/bsd/ipf/dist/lib/gethost.c Sun Jun 29 05:02:15 2014 +0000
+++ b/external/bsd/ipf/dist/lib/gethost.c Sun Jun 29 05:06:46 2014 +0000
@@ -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 @@
}
#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;
Home |
Main Index |
Thread Index |
Old Index