parse_tcpdump_log.pl: Add an option to enable debug
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 9 Mar 2011 03:52:37 +0000 (00:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 9 Mar 2011 03:52:37 +0000 (00:52 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/parse_tcpdump_log.pl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 56882c1..6ddacaf
@@ -2,13 +2,14 @@
 # using cpan, you should install Net::TcpDumpLog
 use Net::TcpDumpLog;
 use strict;
-
+use Getopt::Long;
 
 # Currently, accepts only one usbmon format:
 #      USB with padded Linux header (LINKTYPE_USB_LINUX_MMAPPED)
 # This is the one produced by Beagleboard sniffer GSOC.
 
 my $debug = 0;
+GetOptions('debug' => \$debug);
 
 # Frame format as parsed by libpcap 1.0.0 and 1.1.1. Not sure if format
 # changed on different versions.