From owner-freebsd-net@FreeBSD.ORG Sat Dec 4 20:39:26 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A915916A4CE for ; Sat, 4 Dec 2004 20:39:26 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E205143D2D for ; Sat, 4 Dec 2004 20:39:25 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 47288 invoked from network); 4 Dec 2004 20:30:03 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 4 Dec 2004 20:30:03 -0000 Message-ID: <41B2207E.4FDFFB36@freebsd.org> Date: Sat, 04 Dec 2004 21:39:26 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: meno.abels@adviser.com References: <344de28704120412333e70fb76@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: INADDR_ANY bind in a multiip jail X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 20:39:26 -0000 Meno Abels wrote: > > Hello, > > i had made a patch for 5_X (kern/69064) jail code which enables ipv6 and > multi ip numbers to a jail. > I currently solved the INADDR_ANY binding to map to the first ip of > the jail. But this is not really the good solution it would be better to bind > to all ip's of the jail. Which are simple to determine the ip number which > are needed. But how i change in_pcbbind to support multiip binds. > The problem is, there is only one pcb which can only bound to one > ip or just INADDR_ANY. But now i need a pcb which is able to bind to > two or more ip's. This is not intended in the current code. But to change > this it will be a huge change in the current datastructures of the kernel > networking part. > I don't like to change so much code at once so i ask you is there any > other clue to solve the INADDR_ANY mapping to a defined number of > ip's. How pressing is the need to have multiple IP's within a jail? -- Andre