summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2011-12-15 17:13:57 -0800
committerGaurav Sinha <gaurav.sinha@vyatta.com>2011-12-15 17:13:57 -0800
commit7aaa5c08f46203cd6bdf3c9c12e6c9185341c616 (patch)
treea957696a1fceaaa24871d63891bab020e6698687 /scripts
parent44f59da7eb534c3a572a6b738813ee099cb83fe8 (diff)
downloadvyatta-conntrack-7aaa5c08f46203cd6bdf3c9c12e6c9185341c616.tar.gz
vyatta-conntrack-7aaa5c08f46203cd6bdf3c9c12e6c9185341c616.zip
Bug 7676: including unstaged changes for 7677
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-show-conntrack.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/vyatta-show-conntrack.pl b/scripts/vyatta-show-conntrack.pl
index 95c2341..4740450 100755
--- a/scripts/vyatta-show-conntrack.pl
+++ b/scripts/vyatta-show-conntrack.pl
@@ -23,11 +23,13 @@
#
# **** End License ****
#
+
use Getopt::Long;
use XML::Simple;
use Data::Dumper;
use POSIX;
use lib "/opt/vyatta/share/perl5";
+use Vyatta::ConntrackUtil;
use Vyatta::Misc;
use warnings;
use strict;
@@ -369,4 +371,11 @@ if ($xml2) {
$data = $xs->XMLin($xml2);
print_xml($data, "", $family);
}
+
+if (!($xml1) and !($xml2)) {
+ if (!(Vyatta::ConntrackUtil::check_for_conntrack_hooks())) {
+ #Connection tracking is being used
+ die "\nWarning: Connection tracking is not enabled\n\n";
+ }
+}
# end of file