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
Jon Siwek
7d261dcb55
Merge branch 'master' into topic/jsiwek/doc-framework
...
Conflicts:
src/main.cc
2011-04-07 16:44:29 -05:00
Jon Siwek
c81b83475a
Fix table/set type naming in summary table of generated script docs
2011-04-07 16:19:09 -05:00
Jon Siwek
cb68371006
Generated bro docs now track non-enum redefs.
...
But currently only as cross-referencing links. Tracking exactly how redefs
modify values would require more work.
2011-04-07 16:11:35 -05:00
Seth Hall
1883a169e4
Cleanup to the ftp.bro script
2011-04-07 16:48:01 -04:00
Jon Siwek
a7d8d9e1d6
Modifying bifcl to pass "##" comments into the .bro file being generated.
...
This will allow .bif files to be documented in the same manner as regular
bro scripts.
2011-04-07 13:02:09 -05:00
Jon Siwek
35fdba23ea
Fix wrong delete syntax in CommentedEnumType
2011-04-07 12:34:57 -05:00
Jon Siwek
b8f6c5bc7d
Improving documention for the Bro script document-generation process
...
Some minor organizational revisions to the python scripting.
2011-04-06 16:39:50 -05:00
Seth Hall
ed1ff0b0e9
Merge branch 'master' into topic/policy-scripts-new
2011-04-06 16:53:49 -04:00
Jon Siwek
f3b1a6bb9e
Implementing capability to logically group generated policy script docs
2011-04-06 14:38:35 -05:00
Jon Siwek
e4e7a26ba1
Add :download: role to reST docs for linking to original script source files.
...
This role allows Sphinx to copy non-reST files in the source tree into
the output tree.
2011-04-06 12:12:21 -05:00
Jon Siwek
7593d4d368
Don't warn about generating reST script documentation for stdin
2011-04-06 12:08:23 -05:00
Jon Siwek
5183ab409b
Initial implementation of a make doc
target to generate script docs.
2011-04-06 12:06:39 -05:00
Robin Sommer
5629359a87
Test commit.
2011-04-05 16:28:55 -07:00
Robin Sommer
0257bd304e
Adding language directory to btest.cfg.
2011-04-05 16:23:49 -07:00
Robin Sommer
9a12443f76
Merge branch 'master' into topic/robin/record-table-default
2011-04-05 16:23:07 -07:00
Robin Sommer
050680aa63
Adding new environment variable BRO_SEED_FILE to set the seed file for
...
the random number generator.
This works like the corresponding command line option but is more
convinient when writing tests as it can be set in btest.cfg.
2011-04-05 16:21:43 -07:00
Robin Sommer
0a97a9e82a
Fixing attributes to allow &default in tables/sets to be associated
...
with the field.
This works now:
type X: record {
a: table[string] of bool &default=table( ["foo"] = T );
b: table[string] of bool &default=table();
c: set[string] &default=set("A", "B", "C");
d: set[string] &default=set();
};
I think previously the intend was to associate &default with the
table/set (i.e., define the default value for non-existing indices).
However, that was already not working: the error checking was
reporting type mismatches. So, this shouldn't break anything and make
things more consistent.
2011-04-05 16:20:27 -07:00
Seth Hall
d56848ce84
Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new
2011-04-04 14:44:26 -04:00