From owner-freebsd-amd64@FreeBSD.ORG Wed Sep 21 03:28:12 2011 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46196106566B for ; Wed, 21 Sep 2011 03:28:12 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6B48FC15 for ; Wed, 21 Sep 2011 03:28:11 +0000 (UTC) Received: from sbhfislrext02.fnfis.com ([192.168.249.140]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p8L2e50A016048 for ; Tue, 20 Sep 2011 21:40:05 -0500 Received: from sbhfisltcgw01.FNFIS.COM (Not Verified[10.132.248.121]) by sbhfislrext02.fnfis.com with MailMarshal (v6, 5, 4, 7535) id ; Tue, 20 Sep 2011 21:40:02 -0500 Received: from smtp.fisglobal.com ([10.132.206.15]) by sbhfisltcgw01.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Tue, 20 Sep 2011 21:40:05 -0500 Received: from [10.0.0.104] (10.14.152.54) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 20 Sep 2011 21:40:04 -0500 From: Devin Teske Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 20 Sep 2011 19:40:02 -0700 Message-ID: <714EF3C9-33B0-4EF5-B52C-1E95F7F432F9@fisglobal.com> To: FreeBSD amd64 MIME-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.54] X-OriginalArrivalTime: 21 Sep 2011 02:40:05.0281 (UTC) FILETIME=[C50A9110:01CC7807] X-Mailman-Approved-At: Wed, 21 Sep 2011 04:25:13 +0000 Cc: Devin Teske , Dave Robison Subject: 32-bit route(8) on amd64 host and jails X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2011 03:28:12 -0000 I'm noticing that a 32-bit route(8) shows strange behaviour while running u= nder an amd64 kernel (regardless of whether in the base-host -- utilizing /= usr/lib32/libc.so.7 -- or in a jail and/or vimage -- 32-bit in nature; resu= lts are same). Executable runs fine, but you can't (a) set the default route or (b) view t= he default route (after successfully setting it with the amd64 build, of co= urse). ASIDE: This is under 8.1-RELEASE. When attempting to set the default route, you get the following... root@kps0a / # route add -net default 10.10.125.99 route: writing to routing socket: Invalid argument add net default: gateway 10.10.125.99: Invalid argument Meanwhile, using the amd64 version, no issues. When attempting to view the default route, you get the following... root@kps0a / # route -n get default route to: default destination: default mask: default gateway: default flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 0 0 -1316570637=20 It's the "gateway: default" that's out of place. --- break --- Now, where jails and/or vimages come into play is that I can't seem to come= up with an elegant solution to this. Copying-in an amd64 build of route(8) is not the "simple" solution it seems= as it will then expect a new /usr/libexec/ld-elf.so.1(which you can't just= go replacing because it will break all the 32-bit binaries inside the jail= ). Maybe, doing the opposite of what the base host does ... (the base has /usr= /libexec/ld-elf32.so.1). That is, create /usr/libexec/ld-elf64.so.1 to inte= rpret the drop-in route(8)? --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________