Tim Wojtulewicz
b2f171ec69
Reformat the world
2021-09-16 15:35:39 -07:00
Robin Sommer
355ecc0c43
Extend the file analyzer API to set source manually.
...
The API didn't offer methods for passing in data that allow setting
all of offset, source and MIME type. Adding overloads for that (no
breakage to existing APIs).
2021-05-25 13:33:25 +02:00
Tim Wojtulewicz
63fd1611ca
Rename some connection-specific methods in Session and SessionManager
2021-04-29 10:59:08 -07:00
Vern Paxson
62bab66114
migration to using new differentiated methods for setting record fields
2021-02-25 16:59:26 -08:00
Jon Siwek
737d2c390b
Support explicit disabling of file analyzers
2021-02-23 15:50:18 -08:00
Jon Siwek
c44cbe1feb
Prefix #includes of .bif.h files with zeek/
...
This enables locating the headers within the install-tree using the
dirs provided by `zeek-config --include_dir`.
To enable locating these headers within the build-tree, this change also
creates a 'build/src/include/zeek -> ..' symlink.
2021-02-02 19:15:05 -08:00
Tim Wojtulewicz
0618be792f
Remove all of the random single-file deprecations
...
These are the changes that don't require a ton of changes to other files outside
of the original removal.
2021-01-27 10:52:40 -07:00
Tim Wojtulewicz
96d9115360
GH-1079: Use full paths starting with zeek/ when including files
2020-11-12 12:15:26 -07:00
Tim Wojtulewicz
fe0c22c789
Base: Clean up explicit uses of namespaces in places where they're not necessary.
...
This commit covers all of the common and base classes.
2020-08-24 12:07:00 -07:00
Tim Wojtulewicz
a34e632eef
Move NetVar from zeek to zeek::detail namespace
2020-08-20 16:11:46 -07:00
Tim Wojtulewicz
14408235b8
Move file_analysis code to zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
7fefdd97af
Move Conn and related types to zeek namespace
2020-07-31 16:25:54 -04:00
Tim Wojtulewicz
c9ab1f93e7
Move a few low-use classes to namespaces
2020-07-31 16:25:47 -04:00
Tim Wojtulewicz
886fc102b8
Move DebugLogger to zeek namespaces
2020-07-31 16:23:34 -04:00
Tim Wojtulewicz
a2a435360a
Move all of the hashing classes/functions to zeek::detail namespace
2020-07-31 16:23:34 -04:00
Tim Wojtulewicz
45b5a98420
Move EventMgr, EventHandler, and EventRegistry code to zeek namespace. Rename mgr to event_mgr.
2020-07-31 16:23:32 -04:00
Tim Wojtulewicz
bfab224d7c
Move Reporter to zeek namespace
2020-07-31 16:22:41 -04:00
Tim Wojtulewicz
382812298d
Move all of the rule matching code to zeek::detail
2020-07-31 16:22:04 -04:00
Tim Wojtulewicz
9400b863ea
Move all base analyzer classes to zeek::analyzer namespace
2020-07-31 16:21:46 -04:00
Tim Wojtulewicz
736a3f53d4
Rename BroString to zeek::String
2020-07-02 16:15:01 -07:00
Tim Wojtulewicz
86fdf0eaa9
Mark global val_mgr as deprecated and fix uses of it to use namespaced version
2020-07-02 16:15:00 -07:00
Tim Wojtulewicz
58c6e10b62
Move BroString to zeek namespace
2020-06-30 21:12:26 -07:00
Tim Wojtulewicz
64332ca22c
Move all Val classes to the zeek namespaces
2020-06-30 20:48:09 -07:00
Tim Wojtulewicz
ec9eff0bd5
Use type aliases for IntrusivePtr definitions
2020-06-30 20:37:30 -07:00
Tim Wojtulewicz
9364e6a5b7
Move IntrusivePtr and utility methods to the zeek namespace
2020-06-30 20:19:12 -07:00
Tim Wojtulewicz
ed13972924
Move Type types to zeek namespace
2020-06-09 17:20:45 -07:00
Jon Siwek
b1042e2824
Port remaining file analysis API to use IntrusivePtr
2020-05-22 16:32:40 -07:00
Jon Siwek
57a6069cd1
Deprecate file analyzer construction methods taking raw RecordVal*
...
Replaced with versions that instead take IntrusivePtr
2020-05-22 16:13:15 -07:00
Jon Siwek
27c3c207e4
Change file_analysis::File::GetID() to return const-ref
2020-05-22 00:22:17 -07:00
Jon Siwek
85a0ddd62d
Deprecate TableVal::Lookup(), replace with Find()/FindOrDefault()
2020-05-20 18:00:50 -07:00
Jon Siwek
4debad8caf
Switch zeek: 🆔 :lookup to zeek: 🆔 :find
...
For parity with Scope since it now uses Find instead of Lookup
2020-05-14 18:00:18 -07:00
Jon Siwek
a5762c12cc
Move various elements into ID.h and zeek::id namespace
...
* A handful of generic/useful/common global type pointers that used
to be in NetVar.h
* Lookup functions that used to be Var.h
2020-05-14 17:24:20 -07:00
Jon Siwek
9210d443d3
Trim the list of "global type pointers" from NetVar.h further
...
Most of them are deprecated now, with usage sites now doing the lookup
themselves.
2020-05-14 17:23:20 -07:00
Jon Siwek
c0986f0739
Deprecate global type pointers in NetVar.h
...
There's analogous IntrusivePtrs in zeek::vars
2020-05-14 17:23:20 -07:00
Jon Siwek
d4dba40727
Deprecate VectorVal(VectorType*) ctora
...
Adds a new one taking an IntrusivePtr.
2020-05-14 17:23:20 -07:00
Jon Siwek
a83941d64d
Deprecate internal_val() and internal_const_val()
...
Replaced with zeek::lookup_val() and zeek::lookup_const()
2020-05-14 17:23:19 -07:00
Jon Siwek
1abed4fd4c
Migrate Tag classes to use IntrusivePtr
...
Deprecates various methods that previously took raw pointers
2020-05-14 17:18:00 -07:00
Johanna Amann
04ed125941
Merge remote-tracking branch 'origin/master' into topic/johanna/hash-unification
2020-05-06 23:18:33 +00:00
Johanna Amann
3bce313b12
Switch file UID hashing from md5 to highwayhash.
...
This commit switches UID hashing from md5 to a highway hash. It also
moves the salt value out of the file plugin - and makes it
installation-specific instead - it is moved to the global namespace.
There now are digest hash functions to make "static"
installation-specific hashes that are stable over workers available to
everyone; hashes can be 64, 128 or 256 bits in size.
Due to the fact that we switch the file hashing algorithm, all file
hashes change.
The underlyigng algorithm that is used for hashing is highwayhash-128,
which is significantly faster than md5.
2020-04-30 10:20:09 -07:00
Jon Siwek
2a63e4a4a2
Deprecate BuildConnVal() methods and update usages to ConnVal()
...
The later being a new method that returns IntrusivePtr
2020-04-16 17:00:01 -07:00
Jon Siwek
094d6de979
Update all BIFs to return IntrusivePtr instead of Val*
2020-04-16 17:00:01 -07:00
Jon Siwek
93f4c5871b
Update deprecated ValManager::GetCount usages
2020-04-16 16:46:36 -07:00
Jon Siwek
0ddac4abcf
Update deprecated ValManager::GetInt usages
2020-04-16 16:44:35 -07:00
Jon Siwek
d9edd855da
Update deprecated ValManager::GetBool usages
2020-04-16 16:44:33 -07:00
Johanna Amann
876c803d75
Merge remote-tracking branch 'origin/topic/timw/776-using-statements'
...
* origin/topic/timw/776-using-statements:
Remove 'using namespace std' from SerialTypes.h
Remove other using statements from headers
GH-776: Remove using statements added by PR 770
Includes small fixes in files that changed since the merge request was
made.
Also includes a few small indentation fixes.
2020-04-09 13:31:07 -07:00
Tim Wojtulewicz
393b8353cb
file_analysis: Replace nulls with nullptr
2020-04-07 16:08:34 -07:00
Tim Wojtulewicz
d53c1454c0
Remove 'using namespace std' from SerialTypes.h
...
This unfortunately cuases a ton of flow-down changes because a lot of other
code was depending on that definition existing. This has a fairly large chance
to break builds of external plugins, considering how many internal ones it broke.
2020-04-07 15:59:59 -07:00
Jon Siwek
6980f63a91
Deprecate EventMgr::QueueEventFast() and update usages to Enqueue()
2020-03-25 16:09:33 -07:00
Max Kellermann
ba35ebec4c
Type: return IntrusivePtr
2020-03-06 09:06:38 +01:00
Max Kellermann
0a6ddfb6b5
Val: add TableVal::Assign() overload with IntrusivePtr
...
Prepare the transition to IntrusivePtr for various callers.
2020-03-06 09:06:38 +01:00