summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-nat.pl
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-01-23 11:57:08 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2009-01-23 11:57:08 -0800
commit262b4a68d27fc401493fcf1d07d2a1b2f01b9988 (patch)
tree5ab4bd0f242da674c509b0a4ebd457e6400d50e2 /scripts/vyatta-show-nat.pl
parent0bb6ee3332b2e360251add988839ca723913523a (diff)
downloadvyatta-nat-262b4a68d27fc401493fcf1d07d2a1b2f01b9988.tar.gz
vyatta-nat-262b4a68d27fc401493fcf1d07d2a1b2f01b9988.zip
- Fix statistics in "show nat statistics" when target is NETMAP
- Script to generate a new output for the "show nat rules" command - Fix Bug 3401 some indication is needed for the excluded rules in the "show nat rules" result
Diffstat (limited to 'scripts/vyatta-show-nat.pl')
-rwxr-xr-xscripts/vyatta-show-nat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl
index 87baff0..c933e05 100755
--- a/scripts/vyatta-show-nat.pl
+++ b/scripts/vyatta-show-nat.pl
@@ -30,7 +30,7 @@ while (<STATS>) {
$skey = "";
}
- if ($skey ne "" && (m/SNAT/ || m/DNAT/ || m/MASQUERADE/ || m/RETURN/)) {
+ if ($skey ne "" && (m/SNAT/ || m/DNAT/ || m/MASQUERADE/ || m/RETURN/ || m/NETMAP/)) {
m/^\s*(\d+[KMG]?)\s+(\d+[KMG]?)\s/;
push @{$stats{$skey}}, ($1, $2);
}