From owner-freebsd-hackers Mon Dec 10 6: 6: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 2BF5837B419; Mon, 10 Dec 2001 06:06:01 -0800 (PST) Received: from pool0062.cvx22-bradley.dialup.earthlink.net ([209.179.198.62] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16DR3n-0006Sh-00; Mon, 10 Dec 2001 06:05:35 -0800 Message-ID: <3C14C135.CB9099AD@mindspring.com> Date: Mon, 10 Dec 2001 06:05:41 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Pentchev Cc: Dima Dorfman , chris@FreeBSD.ORG, Igor M Podlesny , freebsd-hackers@FreeBSD.ORG Subject: Re: jail.c.patch (allowing to use hostnames when invoking jail(8)) References: <20011209205442.C8D0A3E2F@bazooka.trit.org> <3C141F9E.D7681BCC@mindspring.com> <20011210124049.G757@straylight.oblivion.bg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Pentchev wrote: > > This is why the inte_aton() call is still necessary. > [snip] > > Please call inet_aton(), and then _only_ if that fails, call the > > gethostbyname(). > > How about inet_pton() and getnameinfo()? You know, I first thought of this, but then I backed off it. The problem is that the addres is passed in as a 32 bit int, not as the address of a sockaddr_in. I think it would take a lot of work to make the jail code IPv6-safe. You'd have to talk to Poul for details, but it's pretty clear that the "splitting" of the virtual address aliases per jail on the interface(s) in question is very IPv4 specific, right now. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message