Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 16:03:30 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271970 - head/contrib/ipfilter/lib
Message-ID:  <201409221603.s8MG3UYk070726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Mon Sep 22 16:03:29 2014
New Revision: 271970
URL: http://svnweb.freebsd.org/changeset/base/271970

Log:
  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)

Modified:
  head/contrib/ipfilter/lib/gethost.c

Modified: head/contrib/ipfilter/lib/gethost.c
==============================================================================
--- head/contrib/ipfilter/lib/gethost.c	Mon Sep 22 15:32:31 2014	(r271969)
+++ head/contrib/ipfilter/lib/gethost.c	Mon Sep 22 16:03:29 2014	(r271970)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409221603.s8MG3UYk070726>