diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-07-31 23:16:26 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-07-31 23:16:26 +0000 |
commit | b667cc5a9984e2ced09f1fccd6a60008fc850b42 (patch) | |
tree | fbf7e219974da220b61fe93af6b0158b097aa91c /tools | |
parent | d1bb5b586018b45ac9f6a8c31c2738f6950dbc98 (diff) |
Add comments to point out that these 2 scripts do the same thing.
svn path=/trunk/; revision=44175
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/indexcap.py | 10 | ||||
-rwxr-xr-x | tools/list_protos_in_cap.sh | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/indexcap.py b/tools/indexcap.py index efe4a1f8bb..d252e27b4a 100755 --- a/tools/indexcap.py +++ b/tools/indexcap.py @@ -2,6 +2,8 @@ # # Tool to index protocols that appears in the given capture files # +# The script list_protos_in_cap.sh does the same thing. +# # Copyright 2009, Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> # # $Id$ @@ -189,19 +191,19 @@ def main(): parser = OptionParser(usage="usage: %prog [options] index_file [file_1|dir_1 [.. file_n|dir_n]]") parser.add_option("-d", "--dissect-files", dest="dissect_files", default=False, action="store_true", help="Dissect all matching files") - parser.add_option("-m", "--max-files", dest="max_files", default=sys.maxint, type="int", + parser.add_option("-m", "--max-files", dest="max_files", default=sys.maxint, type="int", help="Max number of files to process") parser.add_option("-b", "--binary-dir", dest="bin_dir", default=os.getcwd(), help="Directory containing tshark executable") parser.add_option("-c", "--compare-dir", dest="compare_dir", default=None, help="Directory containing tshark executable which is used for comparison") - parser.add_option("-j", dest="num_procs", default=multiprocessing.cpu_count(), type=int, + parser.add_option("-j", dest="num_procs", default=multiprocessing.cpu_count(), type=int, help="Max number of processes to spawn") parser.add_option("-r", "--randomize", default=False, action="store_true", help="Randomize the file list order") - parser.add_option("", "--list-all-proto", dest="list_all_proto", default=False, action="store_true", + parser.add_option("", "--list-all-proto", dest="list_all_proto", default=False, action="store_true", help="List all protocols in index file") - parser.add_option("", "--list-all-files", dest="list_all_files", default=False, action="store_true", + parser.add_option("", "--list-all-files", dest="list_all_files", default=False, action="store_true", help="List all files in index file") parser.add_option("", "--list-all-proto-files", dest="list_all_proto_files", default=False, metavar="PROTO_1[, .. PROTO_N]", diff --git a/tools/list_protos_in_cap.sh b/tools/list_protos_in_cap.sh index 558f05a507..0996b53640 100755 --- a/tools/list_protos_in_cap.sh +++ b/tools/list_protos_in_cap.sh @@ -2,6 +2,8 @@ # List the protocols (dissectors) used in capture file(s) # +# The Python script indexcap.py does the same thing. +# # This script extracts the protocol names contained in a given capture file. # This is useful for generating a "database" (flat file :-)) of in what file # a given protocol can be found. |