From owner-freebsd-current Mon Nov 26 2:10:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D75F937B416; Mon, 26 Nov 2001 02:10:13 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fAQAA2m63040; Mon, 26 Nov 2001 12:10:02 +0200 (EET) (envelope-from ru) Date: Mon, 26 Nov 2001 12:10:02 +0200 From: Ruslan Ermilov To: Daniel Rock Cc: current@FreeBSD.ORG, Luigi Rizzo Subject: Re: Bug in libalias (firewall manipulating) Message-ID: <20011126121002.A61002@sunbay.com> References: <3C01B9A3.CFE7157@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C01B9A3.CFE7157@t-online.de> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 26, 2001 at 04:40:19AM +0100, Daniel Rock wrote: > Hi, > > just noticed: > > adding dynamic rules to ipfw via PKT_ALIAS_PUNCH_FW (or the command > "nat punch_fw" in ppp) doesn't work: > For adding firewall rules, IP_FW_ADD requires getsockopt() instead of > setsockopt(). > > This should also be reflected in the manual page. > > Below is my fix and a quick test suggest it is indeed working now. > Fixed in 5.0-CURRENT, sys/netinet/raw_ip.c,v 1.88. Fixed in 4.4-STABLE, sys/netinet/raw_ip.c,v 1.64.2.10. Thanks for the report! Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message