Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 06:05:41 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        Dima Dorfman <dima@trit.org>, chris@FreeBSD.ORG, Igor M Podlesny <poige@morning.ru>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: jail.c.patch (allowing to use hostnames when invoking jail(8))
Message-ID:  <3C14C135.CB9099AD@mindspring.com>
References:  <20011209205442.C8D0A3E2F@bazooka.trit.org> <3C141F9E.D7681BCC@mindspring.com> <20011210124049.G757@straylight.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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