Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2007 14:35:40 +0400
From:      rihad <rihad@mail.ru>
To:        freebsd-net@freebsd.org
Subject:   replacing ipfw rule
Message-ID:  <47625C7C.2030701@mail.ru>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47625C7C.2030701>