Commit graph

1215 commits

Author SHA1 Message Date
Robin Sommer
b3b5a73113 Fixing problem with optional fields. 2011-04-19 16:22:40 -07:00
Robin Sommer
2bc5e69961 Updating submodule(s). 2011-04-19 15:55:33 -07:00
Robin Sommer
a4a47c3df1 Merge remote branch 'origin/topic/seth/count_to_addr'
* origin/topic/seth/count_to_addr:
  Adjusting BiF name to indicate v4 addresses only.
  count_to_addr function
2011-04-19 15:52:16 -07:00
Jon Siwek
9b7c8b9f98 Fix CheckTypes.cmake from generating different config.h's between CMake runs.
Changing a file that causes CMake to re-run would incorrectly use
leftover state to arrive at the wrong conclusion about whether the
system has a given type.
2011-04-19 10:44:44 -05:00
Seth Hall
61be2f5bd3 Adjusting BiF name to indicate v4 addresses only.
* Function is now named count_to_v4_addr
2011-04-19 00:30:56 -04:00
Robin Sommer
6e263a5c27 Reverting test, it works now. 2011-04-18 18:11:43 -07:00
Robin Sommer
bed259e863 Another test. 2011-04-18 18:09:18 -07:00
Robin Sommer
05dd5a9c04 Testing automatic www updates. 2011-04-18 18:04:01 -07:00
Robin Sommer
20a7a98de6 Adding missing include. 2011-04-18 17:33:13 -07:00
Robin Sommer
0590d899f6 Constness tweak. 2011-04-18 16:50:13 -07:00
Robin Sommer
e7bde27f2d Merge remote branch 'origin/topic/jsiwek/doc-framework' 2011-04-18 14:54:23 -07:00
Seth Hall
4d40cf9d87 Updating scripts to adapt to fixes from Robin.
* The problem with re-coercing extended records seems fixed.
2011-04-18 16:53:13 -04:00
Robin Sommer
d42f0fd49d Updating CHANGES. 2011-04-18 12:54:54 -07:00
Robin Sommer
b59a2127db Updating submodule(s). 2011-04-18 12:51:11 -07:00
Robin Sommer
f090764ac6 Merge remote branch 'origin/topic/jsiwek/CMake-IDE-tweaks'
* origin/topic/jsiwek/CMake-IDE-tweaks:
  Adding files to CMake build targets so they show up in generated IDE projects.

Conflicts:
	aux/binpac
2011-04-18 12:50:15 -07:00
Robin Sommer
bdb1826eba Merge remote branch 'origin/fastpath'
* origin/fastpath:
  Fix unnecessary config.h preprocessor (re)definitions.
2011-04-18 12:38:33 -07:00
Seth Hall
dfd9b40466 count_to_addr function
* Updates to_count to cope with 64bit ints.
* Adds count_to_addr which will turn a count into an IPv4 address.
* Includes tests.
2011-04-18 15:22:48 -04:00
Seth Hall
ed77621e32 Adding a dependency to mime file identification 2011-04-18 14:22:39 -04:00
Seth Hall
3b4e452e66 Readding the software parse testing script. 2011-04-18 14:22:21 -04:00
Seth Hall
2464cc6e37 Merge remote branch 'origin/topic/robin/logging-internals' into topic/policy-scripts-new
Conflicts:
	policy.old/dns-anonymizer.bro
	policy.old/ftp-anonymizer.bro
	policy.old/http-anonymizer.bro
	policy.old/http-rewriter.bro
	policy.old/ident-rewriter.bro
	policy.old/smb-anonymizer.bro
	policy.old/smtp-rewriter.bro
	policy/all.bro
	policy/ftp.bro
	policy/smtp.bro
2011-04-18 11:56:34 -04:00
Robin Sommer
29b0d0d1d9 Files can now be logged; their filename will be written out. 2011-04-17 20:52:18 -07:00
Robin Sommer
f72ec9a39b Updating submodule(s). 2011-04-17 20:29:04 -07:00
Robin Sommer
65016dc5e8 Updating istate tests.
Some still don't pass:

    - events-ssl doesn't work; not clear yet why, there may be some
      problem with SSL connections.

    - broccoli needs the changes topic/jsiwek/64bit-val-fix, plus
    adaption of the protocol version.

    - pybroccoli crashes even with the 64bit-val-fix changes. Reason
      unclear.
2011-04-17 19:53:56 -07:00
Robin Sommer
c132506203 Merge branch 'topic/robin/record-table-default' into topic/robin/logging-internals
Includes additional fixes for the &default attribute's type checking.
2011-04-17 12:03:58 -07:00
Robin Sommer
09d37b2026 Fixing logging filter "include" and "exclude" options. 2011-04-17 11:14:07 -07:00
Robin Sommer
58f86ae55d Fixing bug with records sometimes unnecessarily coerced on assignment. 2011-04-17 10:42:51 -07:00
Seth Hall
f522b7085e More flexible default mime file extraction and hashing. 2011-04-15 16:48:08 -04:00
Seth Hall
3f1bc7dc4e Fixed a number of problems with MIME analysis.
Mostly just parsing errors.  A few related to timing of certain
event handlers.
2011-04-15 16:11:48 -04:00
Seth Hall
9b7cf553ab Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new 2011-04-15 11:51:30 -04:00
Seth Hall
5c31929734 Script rewrite checkpoint. 2011-04-15 11:51:08 -04:00
Don Appleman
f99235cfdd Added a pointer to testing/btest/README for information on BTest 2011-04-14 14:04:30 -05:00
Don Appleman
27feff78d0 Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new 2011-04-14 14:02:54 -05:00
Don Appleman
4ca7ff095a Initial drop of testing/btest/README with description of the contents of the testing/btest directory, how to run BTest, and how to add a new test. 2011-04-14 13:57:10 -05:00
Seth Hall
c7e52db7ee Initial DNS analysis scripts. 2011-04-12 16:55:53 -04:00
Seth Hall
31c7e56a14 New var and func: local_zones: set[string] and is_local_name(string): bool
It can be used to discover if a DNS zone can be considered local
with the is_local_name function.
2011-04-12 13:11:06 -04:00
Jon Siwek
7d2938dac6 Adding files to CMake build targets so they show up in generated IDE projects.
This includes flex/bison/binpac/bifcl input files as well as C/C++ header
files.  Header files for the bro target are determined dynamically at
configure time from a given list of source files.

This addresses #413.
2011-04-12 12:01:04 -05:00
Jon Siwek
c732cef69b Fix unnecessary config.h preprocessor (re)definitions.
The CMake-generated config.h would redundantly define some types to
themselves, causing lots of warning in some cases (e.g. Xcode build).

This addresses #414
2011-04-11 16:59:07 -05:00
Seth Hall
d5d9475ae8 New smtp.bro to load sub-scripts. 2011-04-11 16:00:39 -04:00
Seth Hall
ed654acd5d Tweak to hide passwords in FTP logs. 2011-04-11 15:57:28 -04:00
Seth Hall
6f3398f796 Initial work on new smtp.bro
* Logging activity is currently focused on messages.
* Does command oriented logging still make sense for SMTP?
* Remaining (known) weak points:
	* Poor handling of wrapped message headers.
	* Poor separation into various scripts by functionality.
		* base.bro will likely include nothing after 'DATA'.
	* Out of order command/response pairs are not supported yet.
2011-04-11 15:56:32 -04:00
Seth Hall
f5c7400f0b Small tweak to provide customization point in http/file-extract.bro
The customization point is provided between the time a file
to be extracted has it's file handled opened and when the first
chunk of data is written to disk.
2011-04-11 15:52:28 -04:00
Jon Siwek
515b96685a Fix generated docs displaying "func" for events in identifier summary table. 2011-04-11 10:32:07 -05:00
Jon Siwek
0a14cd11f6 Move generated script doc for "private interface" to bottom of page. 2011-04-11 10:29:41 -05:00
Seth Hall
e1724bf286 HTTP cleanups.
* Multiple pipelined requests before any replies is now supported.
* HTTP::build_url function that takes a connection and builds a
  url current request/response pair.
* I left in an example to show a likely bug with the record
  extension mechanism.
2011-04-08 22:38:39 -04:00
Seth Hall
34de0958e5 DPD cleanup 2011-04-08 22:34:54 -04:00
Jon Siwek
552a70c563 Make doc build target depend on doc-clean to prevent accumulation of junk
Sphinx was adding a new .bro script in the HTML output directory regardless
of whether the source script differed.
2011-04-08 14:26:51 -05:00
Jon Siwek
057ad684d8 Add brief descriptions for classes involved in generation of script docs. 2011-04-08 12:30:06 -05:00
Jon Siwek
af54714839 Add tests for auto-generating reST from bro scripts. 2011-04-08 12:02:03 -05:00
Jon Siwek
3ad5f0559d Remove empty private interface sections from generated script docs. 2011-04-08 10:16:44 -05:00
Seth Hall
62bae54393 Updates for logging framework and development style. 2011-04-07 22:21:56 -04:00