From 76526f03432f9682e6d7cbb6fd42deb8a8936f06 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Sep 2006 10:15:33 +0000 Subject: [PATCH] translate sports, dports to source-ports, destination-ports in import-ferm git-svn-id: svn+ssh://foo-projects.org/var/svn/ferm/trunk@715 887c3e53-ddf1-0310-8e39-e0d3fab4ed34 --- NEWS | 1 + src/import-ferm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 849ded1..b724667 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ v1.2.1 - not yet released * match modules: dst, eui64, frag - disabled array after ttl-lt, ttl-gt - allow "length", "physdev" negation + - translate sports, dports to source-ports, destination-ports in import-ferm v1.2 - 13 Sep 2006 diff --git a/src/import-ferm b/src/import-ferm index 0a46880..299deae 100755 --- a/src/import-ferm +++ b/src/import-ferm @@ -563,6 +563,9 @@ sub parse_option { my $cur = $line->{cur}; die unless defined $cur; + $option = 'destination-ports' if $option eq 'dports'; + $option = 'source-ports' if $option eq 'sports'; + if ($option eq 'p') { my $keyword = 'protocol'; my $param = wrap_negated($keyword, $tokens, \&fetch_token); -- 2.11.4.GIT