From 424188ecefb15b13614b5e74ccf25c5652de5d75 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 4 Jan 2012 01:10:18 +0700 Subject: Don't display masquerade rule code help for destination rules. --- scripts/vyatta-show-nat-rules.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/vyatta-show-nat-rules.pl b/scripts/vyatta-show-nat-rules.pl index 7f950f0..349f44e 100755 --- a/scripts/vyatta-show-nat-rules.pl +++ b/scripts/vyatta-show-nat-rules.pl @@ -125,7 +125,9 @@ sub get_primary_addr { sub print_constants { print "Disabled rules are not shown\n"; - print "Codes: X - exclude rule, M - masquerade rule\n\n"; + print "Codes: X - exclude rule"; + print ", M - masquerade rule" if $type eq 'source'; # M code never appears in destination + print "\n\n"; printf($format1, 'rule', 'intf', 'translation'); print "\n"; printf($format1, '----', '----', '-----------'); -- cgit v1.2.3