INADDR_ANY bind in a multiip jail
meno.abels at gmail.com
Sat Dec 4 13:30:31 PST 2004
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
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?
On Sat, 4 Dec 2004 21:33:16 +0100, Meno Abels <meno.abels at gmail.com> wrote:
> 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
> thanks in advance
More information about the freebsd-net