Date: Sat, 4 Dec 2004 22:30:20 +0100 From: Meno Abels <meno.abels@gmail.com> To: freebsd-net@freebsd.org Subject: Re: INADDR_ANY bind in a multiip jail Message-ID: <344de28704120413306b410608@mail.gmail.com> In-Reply-To: <344de28704120412333e70fb76@mail.gmail.com> References: <344de28704120412333e70fb76@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, i just found a patch from Pawel Jakub Dawidek(mijail5) which do not need the pcb bind to multiple ip's. He solve the problem my marking the socket that is bound to a jail with inaddr_any. With this mark he is filtering the incoming connection lookup to the pcb structure on jail bases. This should enable the behavior that i requested. So that could be a approach to solve the problem with a few sourceline changes. But is it also possible to bind in two jails the same port with inaddr_any? meno On Sat, 4 Dec 2004 21:33:16 +0100, Meno Abels <meno.abels@gmail.com> 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. > > thanks in advance > > meno >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?344de28704120413306b410608>