From owner-svn-src-all@FreeBSD.ORG Sat Nov 30 23:06:52 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DB77E86; Sat, 30 Nov 2013 23:06:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 790081FF7; Sat, 30 Nov 2013 23:06:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAUN6q9o054365; Sat, 30 Nov 2013 23:06:52 GMT (envelope-from peter@svn.freebsd.org) Received: (from peter@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAUN6qbs054363; Sat, 30 Nov 2013 23:06:52 GMT (envelope-from peter@svn.freebsd.org) Message-Id: <201311302306.rAUN6qbs054363@svn.freebsd.org> From: Peter Wemm Date: Sat, 30 Nov 2013 23:06:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r258783 - in stable/8/sys: compat/freebsd32 kern X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2013 23:06:52 -0000 Author: peter Date: Sat Nov 30 23:06:51 2013 New Revision: 258783 URL: http://svnweb.freebsd.org/changeset/base/258783 Log: MFC: r258718: fix emulated jail_v0 byte order Modified: stable/8/sys/compat/freebsd32/freebsd32_misc.c stable/8/sys/kern/kern_jail.c Modified: stable/8/sys/compat/freebsd32/freebsd32_misc.c ============================================================================== --- stable/8/sys/compat/freebsd32/freebsd32_misc.c Sat Nov 30 22:49:26 2013 (r258782) +++ stable/8/sys/compat/freebsd32/freebsd32_misc.c Sat Nov 30 23:06:51 2013 (r258783) @@ -1773,7 +1773,7 @@ freebsd32_jail(struct thread *td, struct CP(j32_v0, j, version); PTRIN_CP(j32_v0, j, path); PTRIN_CP(j32_v0, j, hostname); - j.ip4s = j32_v0.ip_number; + j.ip4s = htonl(j32_v0.ip_number); /* jail_v0 is host order */ break; } Modified: stable/8/sys/kern/kern_jail.c ============================================================================== --- stable/8/sys/kern/kern_jail.c Sat Nov 30 22:49:26 2013 (r258782) +++ stable/8/sys/kern/kern_jail.c Sat Nov 30 23:06:51 2013 (r258783) @@ -291,7 +291,7 @@ jail(struct thread *td, struct jail_args j.version = j0.version; j.path = j0.path; j.hostname = j0.hostname; - j.ip4s = j0.ip_number; + j.ip4s = htonl(j0.ip_number); /* jail_v0 is host order */ break; }