ipfw: use 'delete' instead of 'del' to avoid a warning on freebsd.

'del' is an abbreviation that happened to work because of substring matching
in earlier versions of ipfw, but apparently they're planning to remove the
substring matching eventually.  In any case, 'delete' has always worked, so
there's no downside to using that.

Reported by Ed Maste.
This commit is contained in:
Avery Pennarun 2010-10-05 13:29:12 -04:00
parent a32305a275
commit 10ce1ee5d4

View File

@ -122,7 +122,7 @@ def do_ipfw(port, subnets):
# cleanup any existing rules
if ipfw_rule_exists(port):
ipfw('del', sport)
ipfw('delete', sport)
while _oldctls:
(name,oldval) = _oldctls.pop()