Commit graph

13262 commits

Author SHA1 Message Date
Jon Siwek
c2f0332b5f Removing lexical scanner recognition of "## Author:" comments.
This functionality is better done manually by the script writer
embedding reST into the script summary section (##! comments).
This allows flexibility in choosing between different methods
to convey the same information (e.g. ":Author: <author>" or
the ".. codeauthor:: <author>" directive that Sphinx
configurations can recognize).
2011-03-24 09:51:47 -05:00
Jon Siwek
8b79971e21 Fix auto-generated reST :doc: references to strip .bro file suffixes.
It's allowed for a script to "@load example.bro", but Sphinx doesn't want
that file extension for the purposes of generating cross-referencing links
to other documentation.
2011-03-23 16:59:41 -05:00
Jon Siwek
037a6906af Canonicalize "##" and "## " stylized comments, revise record/enum documentation tracking
The documentation framework now sees "##Text" and "## Text" as
equivalent documentation comments.  This prevents unintentional
indentation in the generated reST as a result of the later style, but
still allows embedded reST markup that relies on indentation of more
than two spaces to work as expected.

Comments associated with record fields and enums values are able
to span multiple "##"-stylized comments, allowing for more robust
reST markup to be embedded.

The documentation framework now tracks record fields through
a new CommentedTypeDecl subclass of TypeDecl that the parser constructs
in parallel with the real TypeDecl.
2011-03-23 16:08:18 -05:00
Seth Hall
6dd142aa1f More updates to notice framework. 2011-03-23 11:38:26 -04:00
Seth Hall
6ba30eae3b Initial script for mime.bro rewrite. 2011-03-23 00:30:02 -04:00
Jon Siwek
bbe7c98ab3 Major reformatting of auto-generated reST documentation.
Introduces reST directives and roles in a "bro" domain that Sphinx
will be taught to recognize.
2011-03-22 16:05:59 -05:00
Seth Hall
b514c9cf89 Initial version of smtp.bro 2011-03-22 16:23:04 -04:00
Seth Hall
6c8ac11660 Bug fix and new all.bro script for loading all base scripts. 2011-03-22 11:56:06 -04:00
Seth Hall
38a57f6d35 Attribute misspelling. 2011-03-22 11:48:49 -04:00
Seth Hall
b2ea6ecf45 Merge remote branch 'origin/topic/robin/logging-internals' into topic/policy-scripts-new
Conflicts:
	src/Expr.cc
2011-03-22 11:42:54 -04:00
Robin Sommer
05f2104fec Merge branch 'topic/robin/record-coercion' into topic/robin/logging-internals
* topic/robin/record-coercion:
  Fixing a bug with nested record ctors.
  Enabling automatic coercion from record type A to be B as long as A has all the types that B has.

Conflicts:
	src/Expr.cc
2011-03-21 17:24:30 -07:00
Robin Sommer
871eff9f90 Updating submodule(s). 2011-03-21 16:35:22 -07:00
Robin Sommer
12c9c947f8 Merge remote branch 'origin/topic/jsiwek/config-file-clobber-fixes'
* origin/topic/jsiwek/config-file-clobber-fixes:
  Changes to the way user-modifiable config files are installed.

Conflicts:
	aux/broccoli
	aux/broctl
2011-03-21 16:29:17 -07:00
Seth Hall
460b10cdf5 Beginning of ssl.bro rewrite. Far from working.
We may be fixing up the binpac ssl analyzer and getting
rid of the C++ one.  As I look closer and closer and at
C++ analyzer, I'm less impressed with the events it
outputs due to it maintaining state differently in the
core than most other analyzers.  Subsequently, the
events that it generates are also significantly
different from those of other analyzers.
2011-03-21 16:56:59 -04:00
Jon Siwek
384fa03c26 Revising notice, port analysis, packet filter, auto-generated documentation.
They're now all optional sections -- if a given bro script doesn't use the
functionality, then the documentation doesn't mention anything about it.
2011-03-21 15:08:39 -05:00
Jon Siwek
e0a77cb794 Auto-doc framework now handles multiple script authors more conveniently. 2011-03-21 14:03:11 -05:00
Seth Hall
b485bd05ad Revert "Merge commit '7526058071' into topic/policy-scripts-new"
This reverts commit 99c1c25e26, reversing
changes made to 04ea1a2f50.
2011-03-21 14:50:22 -04:00
Jon Siwek
5fbcde7344 Teach Desc class how to (optionally) use spaces for indentation.
And (to be consistent with current conventions for reST documentation)
update places in the auto-documentation-generation framework
where tabs were used in the generated reST.
2011-03-21 13:49:53 -05:00
Jon Siwek
e491caeeb7 Add note to auto-generated reST about not editing it directly 2011-03-21 12:49:54 -05:00
Seth Hall
99c1c25e26 Merge commit '7526058071' into topic/policy-scripts-new
Conflicts:
	src/Expr.cc
2011-03-21 11:01:45 -04:00
Seth Hall
04ea1a2f50 More conn.bro changes to improve the logging 2011-03-18 00:57:24 -04:00
Seth Hall
42df07a889 More updates to conn.bro to adjust to new logging framework. 2011-03-18 00:51:48 -04:00
Seth Hall
b47058ef78 Revert "Merge remote branch 'origin/topic/robin/record-coercion' into topic/policy-scripts-new"
This reverts commit b9a63c835f.
2011-03-18 00:27:11 -04:00
Seth Hall
b9a63c835f Merge remote branch 'origin/topic/robin/record-coercion' into topic/policy-scripts-new
Conflicts:
	src/Expr.cc
2011-03-18 00:07:29 -04:00
Robin Sommer
7526058071 Fixing a bug with nested record ctors.
If a record field was initialized with another record ctor, there was
no record type coercion in place in case of a type mismatch.
2011-03-17 17:19:46 -07:00
Seth Hall
3961c6b2c3 Known service logging is now extensible. 2011-03-17 14:58:21 -04:00
Seth Hall
fdd8ce4e57 Another software test and fixes to version parsing. 2011-03-17 14:55:58 -04:00
Seth Hall
8faca52add Software parsing test updates. 2011-03-17 14:29:25 -04:00
Seth Hall
f5668e41a2 Updates to make scripts work with logging-internals code. 2011-03-17 14:29:07 -04:00
Robin Sommer
d84d4b8a57 Moving uid from conn_id to connection, and making output determistic
if a hash seed is given.
2011-03-16 14:25:49 -07:00
Seth Hall
f4b27016cf Merge commit '878d263f11' into topic/policy-scripts-new
* commit '878d263f11':
  More tests for default software parsing function.
2011-03-16 17:04:26 -04:00
Seth Hall
e259da6f8b Merge commit 'e8bff4779e' into topic/policy-scripts-new
* commit 'e8bff4779e':
  Initial and incomplete http.bro
2011-03-16 17:04:21 -04:00
Seth Hall
86a127de44 Merge commit 'febfd4cf04' into topic/policy-scripts-new
* commit 'febfd4cf04':
  Better software version parsing.
2011-03-16 17:04:16 -04:00
Seth Hall
656084bd02 Merge commit 'c212f28130' into topic/policy-scripts-new
* commit 'c212f28130':
  Fixed ftp.bro so that it's extensible by users.
2011-03-16 17:04:12 -04:00
Seth Hall
9931fa529f Merge commit 'e7c7929d35' into topic/policy-scripts-new
* commit 'e7c7929d35':
  Remove unused code; conform to naming conventions; relocate more state to export section
2011-03-16 17:03:56 -04:00
Seth Hall
876463033e Merge commit 'e8526a0c05' into topic/policy-scripts-new
* commit 'e8526a0c05':
  Tiny cleanup to notice.bro
2011-03-16 17:03:51 -04:00
Seth Hall
9384fbd968 Merge commit '50acf152bd' into topic/policy-scripts-new
* commit '50acf152bd':
  More software fixes (and successful tests!).
2011-03-16 17:03:45 -04:00
Seth Hall
25318de82d Merge commit '65c3cb6faf' into topic/policy-scripts-new
* commit '65c3cb6faf':
  Updates for detecting and logging software.
2011-03-16 17:03:40 -04:00
Seth Hall
553f70e4f8 Merge commit 'da90961197' into topic/policy-scripts-new
* commit 'da90961197':
  Another software documentation nit.
2011-03-16 17:03:35 -04:00
Seth Hall
da244f83b2 Merge commit 'ad054d0dcf' into topic/policy-scripts-new
* commit 'ad054d0dcf':
  New software.bro API function for constructing an Info record from a raw version string.
2011-03-16 17:03:29 -04:00
Seth Hall
c4cf5fe905 Merge commit 'b7e59a717b' into topic/policy-scripts-new
* commit 'b7e59a717b':
  Documentation nit fixed.
2011-03-16 17:03:24 -04:00
Seth Hall
8044b730d6 Merge commit 'e105a7f948' into topic/policy-scripts-new
* commit 'e105a7f948':
  software.bro now more complete and documented.
2011-03-16 17:03:19 -04:00
Seth Hall
b6f6606398 Merge commit 'd3432829c9' into topic/policy-scripts-new
* commit 'd3432829c9':
  Fixed some problems with the FTP analysis.
2011-03-16 17:03:15 -04:00
Seth Hall
7e67d7b5ce Merge commit '4c8650f552' into topic/policy-scripts-new
* commit '4c8650f552':
  The global NOTICE function is back.
2011-03-16 17:03:10 -04:00
Seth Hall
a01095423a Merge commit '05b689f10f' into topic/policy-scripts-new
* commit '05b689f10f':
  DPD is now enabled by default.
2011-03-16 17:03:04 -04:00
Seth Hall
6a25b2494e Merge commit '0bae127b3e' into topic/policy-scripts-new
* commit '0bae127b3e':
  Started rewrite of software.bro
2011-03-16 17:02:58 -04:00
Seth Hall
3bba5af34f Merge commit '8fff1d70fd' into topic/policy-scripts-new
* commit '8fff1d70fd':
  ftp.bro is done except for a few points
2011-03-16 17:02:53 -04:00
Seth Hall
d003f1e27b Merge commit '670ceb94d3' into topic/policy-scripts-new
* commit '670ceb94d3':
  Switched to using SSL::Log as the type for the state table; moved state table into export section; added &default=F for weak ciphers booleans; combined two handlers for event bro_init(); reduced number of dependencies; updated to use Notice:: namespace as needed; deleted obsolete code; added documentation
2011-03-16 17:02:47 -04:00
Seth Hall
cb4ca01c22 Merge commit '03044c329e' into topic/policy-scripts-new
* commit '03044c329e':
  Initial movement towards rewritten ftp.bro script.
2011-03-16 17:02:40 -04:00
Seth Hall
dcabacc8e1 Merge commit '723b46a410' into topic/policy-scripts-new
* commit '723b46a410':
2011-03-16 17:02:30 -04:00