Commit graph

11634 commits

Author SHA1 Message Date
Bernhard Amann
3e74cdc6e0 Merge remote-tracking branch 'origin/master' into topic/bernhard/hyperloglog 2013-05-03 22:58:02 -07:00
Robin Sommer
69c7363147 Merge remote-tracking branch 'origin/topic/jsiwek/981'
Closes #981.

* origin/topic/jsiwek/981:
  Table lookups return copy of non-const &default vals (addresses #981).
2013-05-03 17:44:37 -07:00
Robin Sommer
75cbce8ea4 Merge remote-tracking branch 'origin/fastpath'
Closes #986

* origin/fastpath:
  Do not allocate one OpaqueType per OpaqueVal.
  Fix memory-leak in OpaqueVal.
2013-05-03 15:55:22 -07:00
Matthias Vallentin
9ac00f8c79 Do not allocate one OpaqueType per OpaqueVal.
Instead, we now allocate type information globally in NetVar.cc.

Addresses #986.
2013-05-03 15:48:06 -07:00
Matthias Vallentin
e78c20c0f8 Fix memory-leak in OpaqueVal.
Addresses #986.
2013-05-03 14:26:02 -07:00
Matthias Vallentin
9a319a995e Merge branch 'master' into fastpath
* master: (84 commits)
  add comment for seth to make us not forget about the copy statements
  fix the fix (thanks seth)
  duct-tape fix of values not propagating after intermediate check in cluster environments.
  Always apply tcp_connection_attempt.
  Fixing coverage.bare-mode-errors test.
  Fixing coverage.bare-mode-errors test.
  Fixing more memory leaks.
  Fixing memory leak in CompHash.
  Fixing more memory leaks.
  Fixing memory leak in CompHash.
  Replacing cluster leak test.
  Updating test for removed metric_* log fields.
  Layout tweaks for the sumstats code, and preliminary updates for NEWS.
  Updating submodule(s).
  Added protocol to the traceroute detection script.
  Added an automatic state limiter for threshold based SumStats.
  Removed some dead code in scan.bro
  Renamed a plugin hook in sumstats framework.
  Move loading variance back to where it should be alphabetically.
  Fix a bug with path building in FTP.  Came up when changing the path utils.
  ...
2013-05-03 14:07:58 -07:00
Robin Sommer
a1bae68140 Merge remote-tracking branch 'origin/master' into topic/robin/file-analysis-merge
Conflicts:
	scripts/base/protocols/ftp/main.bro
	testing/btest/Baseline/coverage.bare-load-baseline/canonified_loaded_scripts.log
	testing/btest/Baseline/coverage.default-load-baseline/canonified_loaded_scripts.log
2013-05-03 13:52:26 -07:00
Jon Siwek
6a7a242db9 Table lookups return copy of non-const &default vals (addresses #981).
This prevents unintentional modifications to the &default value itself.
2013-05-03 11:22:15 -05:00
Robin Sommer
8992dc6cff Merge remote-tracking branch 'origin/topic/bernhard/metrics-bug'
* origin/topic/bernhard/metrics-bug:
  add comment for seth to make us not forget about the copy statements
  fix the fix (thanks seth)
  duct-tape fix of values not propagating after intermediate check in cluster environments.
  Fixing coverage.bare-mode-errors test.
2013-05-02 12:47:36 -07:00
Bernhard Amann
075bfc5b3d synchronize pruned attribute 2013-05-02 12:09:35 -07:00
Bernhard Amann
2cfef36116 add comment for seth to make us not forget about the copy statements 2013-05-02 11:42:34 -07:00
Bernhard Amann
fe779575d5 fix the fix (thanks seth) 2013-05-02 11:38:40 -07:00
Bernhard Amann
d984243a77 duct-tape fix of values not propagating after intermediate check in cluster environments. 2013-05-02 11:34:33 -07:00
Bernhard Amann
1cf506071d make it compile on case-sensitive file systems and fix warnings 2013-05-01 18:12:20 -07:00
Bernhard Amann
5e01c34943 Merge remote-tracking branch 'origin/master' into topic/bernhard/hyperloglog 2013-05-01 18:04:39 -07:00
Robin Sommer
1603da5af3 Always apply tcp_connection_attempt.
Before this change it was only applied when a connection_attempt()
event handler was defined.
2013-05-01 18:03:52 -07:00
Robin Sommer
9d483b7e74 Fixing coverage.bare-mode-errors test. 2013-05-01 17:52:16 -07:00
Bernhard Amann
c6e69ddc05 potentially found wrong Ref. 2013-05-01 17:06:45 -07:00
Robin Sommer
9ea5a470e6 Fixing coverage.bare-mode-errors test. 2013-05-01 15:28:45 -07:00
Seth Hall
7d7d30e1f7 Merge remote-tracking branch 'origin/master' into topic/seth/metrics-merge 2013-04-30 10:18:53 -04:00
Bernhard Amann
8680e2da00 Merge remote-tracking branch 'origin/topic/robin/metrics-merge' into topic/bernhard/topk 2013-04-29 22:09:46 -07:00
Bernhard Amann
a194fc874e t merge Merge remote-tracking branch 'origin/master' into topic/bernhard/topk 2013-04-29 22:09:38 -07:00
Robin Sommer
6e74dc4dca Merge branch 'master' into topic/robin/metrics-merge 2013-04-29 21:27:29 -07:00
Robin Sommer
a201d2e033 Fixing more memory leaks. 2013-04-29 21:21:05 -07:00
Robin Sommer
1a41bfa0ef Fixing memory leak in CompHash.
Amazing what code still has memory leaks ...

Closes #987.
2013-04-29 21:18:55 -07:00
Robin Sommer
e8c9c2ee0b Fixing more memory leaks. 2013-04-29 21:14:11 -07:00
Robin Sommer
95cf662ff5 Fixing memory leak in CompHash.
Amazing what code still has memory leaks ...

Closes #987.
2013-04-29 21:14:11 -07:00
Robin Sommer
7f0e25bdef Replacing cluster leak test.
The former one used the old metrics framework, now switching to
sumstats.
2013-04-29 21:14:11 -07:00
Bernhard Amann
321dfadaab Merge remote-tracking branch 'origin/topic/robin/metrics-merge' into topic/bernhard/topk 2013-04-29 14:08:17 -07:00
Jon Siwek
0141f51801 FileAnalysis: load custom mime magic database just once.
This works around a bug in libmagic since version 5.12 (current at
time of writing is 5.14) -- second call to magic_load() w/ non-default
database segfaults.
2013-04-29 12:49:22 -05:00
Seth Hall
07b53e9fe2 Merge remote-tracking branch 'origin/master' into topic/seth/file-analysis-exe-analyzer 2013-04-29 13:33:44 -04:00
Bernhard Amann
b968103c92 Merge remote-tracking branch 'origin/master' into topic/bernhard/sqlite 2013-04-28 22:06:34 -07:00
Bernhard Amann
8fd502c458 Merge remote-tracking branch 'origin/topic/seth/metrics-merge' into topic/bernhard/topk 2013-04-28 21:56:23 -07:00
Bernhard Amann
160da6f1a6 add sum function that can be used to get the number of total
observed elements.

Add methods to merge with and without pruning (before only merge
method was with pruning, which invalidates the number of total
observed elements)
2013-04-28 21:55:06 -07:00
Bernhard Amann
6beaefd207 Merge remote-tracking branch 'origin/topic/bernhard/topk' into topic/bernhard/topk 2013-04-28 21:22:13 -07:00
Bernhard Amann
07ecd31bbd in cluster settings, the resultvals can apparently
been uninitialized in some special cases
2013-04-28 21:21:22 -07:00
Robin Sommer
c1f08cc435 Updating test for removed metric_* log fields. 2013-04-28 15:36:49 -07:00
Robin Sommer
b9249ecf9d Layout tweaks for the sumstats code, and preliminary updates for NEWS.
The layout changes are mostly whitespace and some comment rewrapping.
No functional changes.
2013-04-28 15:35:21 -07:00
Robin Sommer
1e40a2f88c Merge remote-tracking branch 'origin/topic/seth/metrics-merge'
* origin/topic/seth/metrics-merge: (70 commits)
  Added protocol to the traceroute detection script.
  Added an automatic state limiter for threshold based SumStats.
  Removed some dead code in scan.bro
  Renamed a plugin hook in sumstats framework.
  Move loading variance back to where it should be alphabetically.
  Fix a bug with path building in FTP.  Came up when changing the path utils.
  Fix a few tests.
  SumStats test checkpoint.
  SumStats tests pass.
  Checkpoint for SumStats rename.
  Fix another occasional reporter error.
  Small updates to hopefully correct reporter errors leading to lost memory.
  Trying to fix a state maintenance issue.
  Updating DocSourcesList
  Updated FTP bruteforce detection and a few other small changes.
  Test updates and cleanup.
  Fixed the measurement "sample" plugin.
  Fix path compression to include removing "/./".
  Removed the example metrics scripts. Better real world examples exist now.
  Measurement framework is ready for testing.
  ...
2013-04-28 13:21:46 -07:00
Scott Runnels
4f9869fe5c Spelling corrections. 2013-04-28 15:50:03 -04:00
Scott Runnels
cb3e05edd4 Include Notice Policy shortcuts in the Scripting User Manual.
Include two tests and baselines for the RST output.
2013-04-28 15:48:44 -04:00
Robin Sommer
424025fb04 Updating submodule(s).
[nomail]
2013-04-27 15:07:35 -07:00
Robin Sommer
5fb716a724 Merge remote-tracking branch 'origin/fastpath'
* origin/fastpath:
  Fixed a bug in the vulnerable software script and added a test.
2013-04-27 15:03:29 -07:00
Bernhard Amann
1accee41ed fix memory leaks 2013-04-26 14:06:38 -07:00
Bernhard Amann
fd2e050306 fix warnings 2013-04-26 11:34:07 -07:00
Seth Hall
04410237c2 Added protocol to the traceroute detection script. 2013-04-26 12:24:46 -04:00
Bernhard Amann
5608caf79a make error rate configureable 2013-04-25 14:20:13 -07:00
Bernhard Amann
9802e2332d Merge branch 'topic/bernhard/hyperloglog-with-measurement' into topic/bernhard/hyperloglog 2013-04-25 13:46:36 -07:00
Bernhard Amann
32620952d0 Merge remote-tracking branch 'origin/topic/seth/metrics-merge' into topic/bernhard/hyperloglog 2013-04-25 13:45:30 -07:00
Bernhard Amann
166fc4765a Merge remote-tracking branch 'origin/topic/seth/metrics-merge' into topic/bernhard/topk 2013-04-25 13:21:18 -07:00