From owner-freebsd-net@FreeBSD.ORG Wed Apr 30 01:08:47 2003 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 96EF337B401 for ; Wed, 30 Apr 2003 01:08:47 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D18743FBF for ; Wed, 30 Apr 2003 01:08:43 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h3U88W62041520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Apr 2003 11:08:35 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h3U88WfW041515; Wed, 30 Apr 2003 11:08:32 +0300 (EEST) (envelope-from ru) Date: Wed, 30 Apr 2003 11:08:32 +0300 From: Ruslan Ermilov To: Luigi Rizzo Message-ID: <20030430080832.GB39766@sunbay.com> References: <20030430023640.A22257@iclub.nsu.ru> <20030429200529.GA71528@sunbay.com> <20030430143114.A38982@iclub.nsu.ru> <20030430004245.B95389@xorpc.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline In-Reply-To: <20030430004245.B95389@xorpc.icir.org> User-Agent: Mutt/1.5.4i cc: freebsd-net@freebsd.org Subject: Re: IPDIVERT 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: Wed, 30 Apr 2003 08:08:47 -0000 --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 30, 2003 at 12:42:45AM -0700, Luigi Rizzo wrote: > On Wed, Apr 30, 2003 at 02:31:14PM +0700, Max Khon wrote: > > hi, there! > ... > > On Tue, Apr 29, 2003 at 11:05:29PM +0300, Ruslan Ermilov wrote: > > > > I have a suggestion to build GENERIC and ipfw.ko with IPDIVERT by d= efault > > > > or change IPDIVERT to NOIPDIVERT and build boot kernels with NOIPDI= VERT. > > > > The main goal is to allow to use NAT with stock kernels and ipfw.ko. > ... > > AFAIK there is no possibility to add IPPROTO_DIVERT dynamically to > > inetsw[]. Some fields of 'struct ipq' are under #ifdef IPDIVERT as well. > > ipfw code under #ifdef IPDIVERT are just `case' labels and strings in p= rintf's > > (like "ipdivert enabled"). In other words is it really > > worth splitting ipdivert into separate .ko module? Changing IPDIVERT to > > NOIPDIVERT will be cleaner in my opinion. >=20 > indeed, i believe we should make the main part of IPDIVERT processing > (in ip_input.c, ip_output.c, ip_fw2.c and ip_var.h) non-optional > (this would also allow a better realignment of fields in struct ipq)=20 > and only make the code in ip_divert.c a module >=20 That's what I basically meant by "changing lot of ``#ifdef IPDIVERT'' to ``if (IPDIVERT_LOADED)''", too. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --UFHRwCdBEJvubb2X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+r4SAUkv4P6juNwoRAox2AJ9yKTveG3rl7nDLgVXtpA5zyd3akQCeOGEx unhRKpLdVs2/Ig1kSCBAEbs= =wV+p -----END PGP SIGNATURE----- --UFHRwCdBEJvubb2X--