mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
No description
![]() * Adding support for enums with explicit enumerator values (see doc below) to bifcl and policy layer. * Bifcl: remove (partially written) output files on error and do a nice exit(1) instead of harsh abort() on parse errors. * CMakeText: if bifcl fails, remove output files (failsafe, in case bifcl fails to clean up after itself). Enum description ---------------- Enum's are supported in .bif and .bro scripts. An enum in a bif will become available in the event engine and the policy layer. Enums are "C-style". The first element in an enum will have a value of 0, the next value will be 1, etc. It is possible to assign an enumerator value to an element. If next element does not have an explicit value, its values will be the value of the last element + 1 Example:: type foo: enum { BAR_A, # value will be 0 BAR_B, # value will be 1 BAR_C = 10, # value will be 10 BAR_D, # value will be 11 }; Enumerator values can only by positive integer literals. The literals can be specified in (0x....), but not in octal (bro policy layer limitation). So, do not use 0123 as value in bifs! Each enumerator value can only be used once per enum (C allows to use the same value multiple times). This makes reverse mapping from value to name (e.g., in %s format strings) unambigious. This is enforced in by the policy script. Enums can be redef'ed, i.e., extended. Enumerator values will continue to increment. If there are multiple redefs in different policy scripts, then name <-> value mappings will obviously depend on the order in which scripts are loaded (which might not be obvious). Example:: redef enum foo += { BAR_E, # value will be 12 BAR_F = 5, # value will be 5 BAR_G, # value will be 6 }; |
||
---|---|---|
aux | ||
cmake | ||
doc | ||
policy | ||
src | ||
testing | ||
.gitignore | ||
.gitmodules | ||
bro-path-dev.in | ||
CHANGES | ||
Checklist-for-Release | ||
CMakeLists.txt | ||
config.h.in | ||
configure | ||
COPYING | ||
INSTALL | ||
make-mac-packages | ||
make-rpm-packages | ||
Makefile | ||
README | ||
VERSION |
This is release 1.6 of Bro, a system for detecting network intruders in real-time using passive network monitoring. Please see the file INSTALL for installation instructions and pointers for getting started. For more documentation, see the documentation on Bro's home page: http://www.bro-ids.org/docs The main parts of Bro's documentation are also available in the doc/ directory of the distribution. (Please note that the documentation is still a work in progress; there will be more in future releases.) Numerous other Bro-related publications, including a paper describing the system, can be found at http://www.bro-ids.org/publications.html Send comments, etc., to the Bro mailing list, bro@bro-ids.org. However, please note that you must first subscribe to the list in order to be able to post to it. - Vern Paxson & Robin Sommer, on behalf of the Bro development team Lawrence Berkeley National Laboratory University of California, Berkeley USA ICSI Center for Internet Research (ICIR) International Computer Science Institute Berkeley, CA USA vern@icir.org / robin@icir.org