From owner-freebsd-net@FreeBSD.ORG Fri Dec 14 10:35:51 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AF0E16A419 for ; Fri, 14 Dec 2007 10:35:51 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx38.mail.ru (mx38.mail.ru [194.67.23.16]) by mx1.freebsd.org (Postfix) with ESMTP id D5D2513C442 for ; Fri, 14 Dec 2007 10:35:50 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from [217.25.27.27] (port=30903 helo=[217.25.27.27]) by mx38.mail.ru with esmtp id 1J37tU-000CsY-00 for freebsd-net@freebsd.org; Fri, 14 Dec 2007 13:35:48 +0300 Message-ID: <47625C7C.2030701@mail.ru> Date: Fri, 14 Dec 2007 14:35:40 +0400 From: rihad User-Agent: Icedove 1.5.0.14pre (X11/20071018) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: replacing ipfw rule X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rihad@mail.ru List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 10:35:51 -0000 Any way to atomically replace an ipfw rule? i.e. do away without delete: ipfw add 100 pipe 1 ip from aaa to bbb ipfw delete 100 ipfw add 100 pipe 2 ip from aaa to bbb This results in 2 rules being added: ipfw add 100 pipe 1 ip from aaa to bbb ipfw add 100 pipe 2 ip from aaa to bbb BTW what happens when a pipe is deleted? Is the data queued but not yet sent lost or is it still sent? Thanks.