From owner-freebsd-net@FreeBSD.ORG Sat Dec 4 20:33:17 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 B992A16A4CE for ; Sat, 4 Dec 2004 20:33:17 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74E1F43D5E for ; Sat, 4 Dec 2004 20:33:17 +0000 (GMT) (envelope-from meno.abels@gmail.com) Received: by wproxy.gmail.com with SMTP id 37so37862wra for ; Sat, 04 Dec 2004 12:33:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=BSpnhaq1H2133kJ7EykEBauEKf3HuEwX8WOzypIiqGJfonR1uazARik1JxLAHUfv/hxoCK0E8yLyCSU1R5IApY4bwKEZ4LeTZKKRLs5qJTCGkgb95ARPDl8zCmtW13k3WAcxu8/7UumAVZFGioQp/GI9mGbKtYzeHBa6/a+nESI= Received: by 10.54.57.10 with SMTP id f10mr466364wra; Sat, 04 Dec 2004 12:33:16 -0800 (PST) Received: by 10.54.25.5 with HTTP; Sat, 4 Dec 2004 12:33:16 -0800 (PST) Message-ID: <344de28704120412333e70fb76@mail.gmail.com> Date: Sat, 4 Dec 2004 21:33:16 +0100 From: Meno Abels To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: INADDR_ANY bind in a multiip jail X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: meno.abels@adviser.com 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:33:17 -0000 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