Skip to content
/ bro Public
forked from zeek/zeek

Commit

Permalink
Merge remote-tracking branch 'origin/fastpath'
Browse files Browse the repository at this point in the history
* origin/fastpath:
  Restore the --load-seeds cmd-line option
  • Loading branch information
rsmmr committed Jun 24, 2015
2 parents b98708b + 368c146 commit 408c0d8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.4-8 | 2015-06-24 07:50:50 -0700

* Restore the --load-seeds cmd-line option and enable the short
options -G/-H for --load-seeds/--save-seeds. (Daniel Thayer)

2.4-6 | 2015-06-19 16:26:40 -0700

* Generate protocol confirmations for Modbus, making it appear as a
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4-6
2.4-8
2 changes: 1 addition & 1 deletion aux/broker
Submodule broker updated from 441fab to f303cd
2 changes: 1 addition & 1 deletion aux/btest
Submodule btest updated from 6a47a3 to 0e2da1
11 changes: 8 additions & 3 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ void usage()
#endif
fprintf(stderr, " -C|--no-checksums | ignore checksums\n");
fprintf(stderr, " -F|--force-dns | force DNS\n");
fprintf(stderr, " -G|--load-seeds <file> | load seeds from given file\n");
fprintf(stderr, " -H|--save-seeds <file> | save seeds to given file\n");
fprintf(stderr, " -I|--print-id <ID name> | print out given ID\n");
fprintf(stderr, " -J|--set-seed <seed> | set the random number seed\n");
fprintf(stderr, " -K|--md5-hashkey <hashkey> | set key for MD5-keyed hashing\n");
Expand All @@ -209,8 +211,6 @@ void usage()
fprintf(stderr, " -X <file.bst> | print contents of state file as XML\n");
#endif
fprintf(stderr, " --pseudo-realtime[=<speedup>] | enable pseudo-realtime for performance evaluation (default 1)\n");
fprintf(stderr, " --load-seeds <file> | load seeds from given file\n");
fprintf(stderr, " --save-seeds <file> | save seeds to given file\n");

#ifdef USE_IDMEF
fprintf(stderr, " -n|--idmef-dtd <idmef-msg.dtd> | specify path to IDMEF DTD file\n");
Expand Down Expand Up @@ -490,6 +490,7 @@ int main(int argc, char** argv)
{"analyze", required_argument, 0, 'z'},
{"no-checksums", no_argument, 0, 'C'},
{"force-dns", no_argument, 0, 'F'},
{"load-seeds", required_argument, 0, 'G'},
{"save-seeds", required_argument, 0, 'H'},
{"set-seed", required_argument, 0, 'J'},
{"md5-hashkey", required_argument, 0, 'K'},
Expand Down Expand Up @@ -546,7 +547,7 @@ int main(int argc, char** argv)
opterr = 0;

char opts[256];
safe_strncpy(opts, "B:e:f:I:i:J:K:n:p:R:r:s:T:t:U:w:x:X:z:CFNPQSWabdghv",
safe_strncpy(opts, "B:e:f:G:H:I:i:J:K:n:p:R:r:s:T:t:U:w:x:X:z:CFNPQSWabdghv",
sizeof(opts));

#ifdef USE_PERFTOOLS_DEBUG
Expand Down Expand Up @@ -649,6 +650,10 @@ int main(int argc, char** argv)
dns_type = DNS_FORCE;
break;

case 'G':
seed_load_file = optarg;
break;

case 'H':
seed_save_file = optarg;
break;
Expand Down

0 comments on commit 408c0d8

Please sign in to comment.