From owner-freebsd-net@FreeBSD.ORG Sat Dec 4 22:38:09 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 F238316A4CE for ; Sat, 4 Dec 2004 22:38:09 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3247943D53 for ; Sat, 4 Dec 2004 22:38:09 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 47934 invoked from network); 4 Dec 2004 22:28:45 -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 22:28:45 -0000 Message-ID: <41B23C51.5B4207AC@freebsd.org> Date: Sat, 04 Dec 2004 23:38:09 +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> <344de28704120413306b410608@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 22:38:10 -0000 Meno Abels wrote: > > 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. Do you have a link? I'd like to have a look at the code. > So that could be a approach to solve the problem with a few sourceline changes. Sounds better. > But is it also possible to bind in two jails the same port with inaddr_any? Have to see the code to answer that. Probably not. -- Andre