Date: Tue, 20 Sep 2011 19:40:02 -0700 From: Devin Teske <devin.teske@fisglobal.com> To: FreeBSD amd64 <freebsd-amd64@freebsd.org> Cc: Devin Teske <devin.teske@fisglobal.com>, Dave Robison <Dave.Robison@fisglobal.com> Subject: 32-bit route(8) on amd64 host and jails Message-ID: <714EF3C9-33B0-4EF5-B52C-1E95F7F432F9@fisglobal.com>
next in thread | raw e-mail | index | archive | help
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: <UP,GATEWAY,DONE,STATIC> 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. _____________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?714EF3C9-33B0-4EF5-B52C-1E95F7F432F9>