zeek/src
Robin Sommer 000ed528dc
Spicy: Rework code for converting Spicy values to Zeek values.
The logic was template-based so far, which wasn't great because: (1)
conceptually, it models the Spicy types at the wrong layer (C++ rather
than HILTI types), and (2) stopped working with some recent Spicy
updates (which we have temporarily reverted in the meantime to keep
Zeek working).

The new code is based on HILTI's runtime type information and the
corresponding introspection API, pretty much like `spicy-dump` works
as well. This is the recommended approach for working with HILTI
values, and generally much cleaner.

This is on top of https://github.com/zeek/zeek/pull/4300.
2025-04-02 17:45:19 +02:00
..
3rdparty@c48d4fac92 Update src/3rdparty submodule [nomail] 2025-03-18 11:47:50 -07:00
analyzer SSH analyzer - tiny aesthetic fixes 2025-03-19 10:38:03 +00:00
broker Merge remote-tracking branch 'origin/topic/neverlord/broker-logging' 2025-03-31 18:53:43 +02:00
cluster cluster/zeromq: Improve XPUB stall behavior, add a metric 2025-03-26 14:23:09 +01:00
file_analysis Fix formatting of zeek_add_plugin 2025-03-03 11:23:09 +01:00
fuzzers Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
include Creating a symlink src/include/zeek -> src/ 2022-11-09 18:16:13 +02:00
input Fix formatting of zeek_add_plugin 2025-03-03 11:23:09 +01:00
iosource Fix formatting of zeek_add_plugin 2025-03-03 11:23:09 +01:00
logging Fix formatting of zeek_add_plugin 2025-03-03 11:23:09 +01:00
packet_analysis Set ip_proto when creating new tunnel encapsulations 2025-03-06 09:25:03 -07:00
plugin plugin: Add component enum for storage backends 2025-03-18 09:32:34 -07:00
probabilistic Remove deprecated BloomFilter serialization methods 2024-08-07 11:58:21 -07:00
script_opt Merge remote-tracking branch 'origin/topic/vern/CPP-maint.Mar25' 2025-03-19 12:46:52 -07:00
session session/Manager: Emit explicit errors for FindConnection() with proto=65535 2025-01-17 17:57:49 +01:00
spicy Spicy: Rework code for converting Spicy values to Zeek values. 2025-04-02 17:45:19 +02:00
storage Make storage events take a tag for the backend instead of a string 2025-03-27 16:12:24 -07:00
supervisor Remove unused SupervisedNode::InitCluster declaration 2025-01-31 20:33:07 -08:00
telemetry telemetry: Run callbacks at collect time 2025-03-26 12:07:27 +01:00
threading Pack some classes for better memory usages 2025-01-30 10:50:29 -07:00
zeekygen Add comment annotation to disable copying redef value into docs 2025-04-01 10:23:55 -07:00
Anon.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Anon.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Attr.cc improved error cascade for invalid attributes 2024-06-04 10:36:36 -07:00
Attr.h improved error cascade for invalid attributes 2024-06-04 10:36:36 -07:00
Base64.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Base64.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
binpac-lib.pac Code modernization: Convert from deprecated C standard library headers 2022-06-27 09:47:31 -07:00
binpac.pac Remove $Id$ tags 2011-08-04 15:21:18 -05:00
binpac_zeek-lib.pac Spelling src 2022-11-09 12:08:15 -05:00
binpac_zeek.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
CCL.cc Reformat 2023-11-06 09:42:46 +00:00
CCL.h Reformat 2023-11-06 09:42:46 +00:00
CMakeLists.txt Lay out initial parts for the Storage framework 2025-03-18 09:32:34 -07:00
communityid.bif communityid: Use GetField() over GetFieldAs() 2024-11-15 17:38:53 +01:00
CompHash.cc Reformat 2023-11-06 09:42:46 +00:00
CompHash.h Reformat 2023-11-06 09:42:46 +00:00
Conn.cc Make conn.log service field ordered 2025-01-30 16:59:44 +00:00
Conn.h Pack some classes for better memory usages 2025-01-30 10:50:29 -07:00
const.bif Add infrastructure for automated expiration of storage entries 2025-03-18 09:32:34 -07:00
DbgBreakpoint.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DbgBreakpoint.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DbgDisplay.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DbgHelp.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DbgWatch.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DbgWatch.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Debug.cc Merge remote-tracking branch 'origin/topic/awelzel/license-header-cleanup' 2024-12-09 12:23:00 -07:00
Debug.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DebugCmdInfoConstants.in Merge remote-tracking branch 'microsoft/master' 2022-11-11 15:23:21 -07:00
DebugCmds.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DebugCmds.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DebugLogger.cc DebugLogger: add stream for storage 2025-03-18 09:32:34 -07:00
DebugLogger.h DebugLogger: add stream for storage 2025-03-18 09:32:34 -07:00
Desc.cc fix ZAM "cat" of doubles/times to include trailing ".0" per normal BiF behavior 2024-03-28 16:43:06 -07:00
Desc.h Reformat 2023-11-06 09:42:46 +00:00
DFA.cc Fix up minor warnings in touched files 2024-10-30 08:47:57 -04:00
DFA.h Fix up minor warnings in touched files 2024-10-30 08:47:57 -04:00
Dict.cc clang-format: Sort doctest header at the bottom 2024-11-15 17:00:00 +01:00
Dict.h Dict: Invalidate iterators during Clear() 2024-01-09 09:12:21 +01:00
digest.cc Reformat 2023-11-06 09:42:46 +00:00
digest.h digest/digest_print: Use bytetohex() instead of snprintf() 2024-02-13 19:32:16 +01:00
Discard.cc Reformat 2023-11-06 09:42:46 +00:00
Discard.h Reformat 2023-11-06 09:42:46 +00:00
DNS_Mapping.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DNS_Mapping.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
DNS_Mgr.cc Bump clang-format pre-commit hooks 2024-12-09 16:12:36 +01:00
DNS_Mgr.h Bump clang-format 2024-09-02 16:46:59 +02:00
EquivClass.cc Reformat 2023-11-06 09:42:46 +00:00
EquivClass.h Reformat 2023-11-06 09:42:46 +00:00
event.bif Fix errors from rst linting on the generated docs 2025-01-24 11:41:36 -07:00
Event.cc EventHandler: Deprecate Call(args, no_remote, ts), add Call(args) 2025-03-27 19:23:47 +01:00
Event.h Event/EventMgr: protected to private 2025-03-27 19:23:47 +01:00
EventHandler.cc EventHandler: Header cleanup 2025-03-27 19:23:47 +01:00
EventHandler.h EventHandler: Deprecate Call(args, no_remote, ts), add Call(args) 2025-03-27 19:23:47 +01:00
EventLauncher.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
EventLauncher.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
EventRegistry.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
EventRegistry.h Pack some classes for better memory usages 2025-01-30 10:50:29 -07:00
EventTrace.cc all: Change to use Func::GetName() 2024-09-27 15:11:17 +02:00
EventTrace.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Expr.cc Expr: Fix folding of pattern values to support == and != 2024-12-16 10:56:02 +01:00
Expr.h ZAM optimization now removes hook calls to hooks without any bodies 2024-12-03 12:47:20 -07:00
File.cc Reformat 2023-11-06 09:42:46 +00:00
File.h Reformat 2023-11-06 09:42:46 +00:00
Flare.cc Reformat 2023-11-06 09:42:46 +00:00
Flare.h Reformat 2023-11-06 09:42:46 +00:00
Frag.cc Reformat 2023-11-06 09:42:46 +00:00
Frag.h Reformat 2023-11-06 09:42:46 +00:00
Frame.cc Add facade types to avoid using raw Broker types 2023-12-04 15:23:28 +01:00
Frame.h Add facade types to avoid using raw Broker types 2023-12-04 15:23:28 +01:00
Func.cc Telemetry framework: move BIFs to the primary-bif stage 2024-10-18 09:56:29 -07:00
Func.h Func: Add std::string name accessors, deprecate const char* versions 2024-09-27 15:11:17 +02:00
Hash.cc clang-format: Sort doctest header at the bottom 2024-11-15 17:00:00 +01:00
Hash.h Make BIFs just return ValPtr directly instead of BifReturnVal 2024-01-22 10:35:34 -07:00
ID.cc Add comment annotation to disable copying redef value into docs 2025-04-01 10:23:55 -07:00
ID.h simpler and more robust identification of function parameters for AST profiling 2024-08-16 11:19:02 +02:00
input.h input/zeek-setup: Track parse_only globally 2025-03-05 19:23:08 +01:00
IntrusivePtr.h Completely rework return values from storage operations 2025-03-18 10:20:33 -07:00
IntSet.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
IntSet.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
IP.cc Reformat 2023-11-06 09:42:46 +00:00
IP.h Increase size of proto fields to uint16_t, add common default value 2024-11-13 11:25:46 -07:00
IPAddr.cc IPAddr/ConnKey: Protect from uninitialized conn_id 2025-01-17 17:53:02 +01:00
IPAddr.h IPAddr/ConnKey: Promote transport to uint16_t 2025-01-17 17:53:02 +01:00
List.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
List.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
main.cc Reformat 2023-11-06 09:42:46 +00:00
make_dbg_constants.py Swap pre-commit yapf for ruff/ruff-format, fix findings 2024-12-11 11:08:37 -07:00
mmdb.bif Modernize various C++/Zeek-isms in the MMDB code. 2024-01-11 17:13:41 -08:00
MMDB.cc Fix MMDB::Lookup() to check result status correctly 2024-01-25 23:54:22 -08:00
MMDB.h Modernize various C++/Zeek-isms in the MMDB code. 2024-01-11 17:13:41 -08:00
module_util.cc Reformat 2023-11-06 09:42:46 +00:00
module_util.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
net_util.cc clang-format: Sort doctest header at the bottom 2024-11-15 17:00:00 +01:00
net_util.h Add conn.log entries for connections with unhandled IP protocols 2024-11-13 11:25:40 -07:00
NetVar.cc init-bare: Deprecate tcp_reassembler_ports 2024-12-05 16:18:11 +01:00
NetVar.h Add conn.log entries for connections with unhandled IP protocols 2024-11-13 11:25:40 -07:00
NFA.cc Reformat 2023-11-06 09:42:46 +00:00
NFA.h Reformat 2023-11-06 09:42:46 +00:00
Notifier.cc fix for Trigger's whose termination leads to deleting other Trigger's 2023-12-12 09:45:19 +01:00
Notifier.h Reformat 2023-11-06 09:42:46 +00:00
Obj.cc fix for setting object locations to avoid use-after-free situation 2024-09-27 13:23:06 -07:00
Obj.h Bump clang-format 2024-09-02 16:46:59 +02:00
OpaqueVal.cc Remove deprecated OpaqueVal serialization methods 2024-08-07 11:58:21 -07:00
OpaqueVal.h Remove deprecated OpaqueVal serialization methods 2024-08-07 11:58:21 -07:00
option.bif option.bif: Short-circuit option changes when terminating 2022-07-29 18:22:03 +02:00
Options.cc Fix options parsing segfault 2025-01-23 11:41:11 -05:00
Options.h Try to be more careful with --help printing 2025-01-08 07:54:18 -05:00
Overflow.cc Reformat 2023-11-06 09:42:46 +00:00
Overflow.h Reformat 2023-11-06 09:42:46 +00:00
PacketFilter.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
PacketFilter.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
parse.y Add comment annotation to disable copying redef value into docs 2025-04-01 10:23:55 -07:00
Pipe.cc Reformat 2023-11-06 09:42:46 +00:00
Pipe.h Reformat 2023-11-06 09:42:46 +00:00
PolicyFile.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
PolicyFile.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
PrefixTable.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
PrefixTable.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
PriorityQueue.cc Reformat 2023-11-06 09:42:46 +00:00
PriorityQueue.h Reformat 2023-11-06 09:42:46 +00:00
RandTest.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RandTest.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
re-parse.y Reformat embedded C++ code in bison/flex files 2025-03-04 09:33:30 -07:00
re-scan.l Reformat embedded C++ code in bison/flex files 2025-03-04 09:33:30 -07:00
RE.cc clang-format: Sort doctest header at the bottom 2024-11-15 17:00:00 +01:00
RE.h RE: Remove RE_DisjunctiveMatcher and re-use MatchAll() 2023-11-21 10:34:16 +01:00
Reassem.cc Reformat 2023-11-06 09:42:46 +00:00
Reassem.h Reformat 2023-11-06 09:42:46 +00:00
reporter.bif Update reporter.bif to describe special case of errors in init 2024-06-04 11:56:06 +02:00
Reporter.cc Reporter: Add ScriptLocationScope helper 2024-11-26 12:13:14 +01:00
Reporter.h Reporter: Add ScriptLocationScope helper 2024-11-26 12:13:14 +01:00
rule-parse.y Reformat embedded C++ code in bison/flex files 2025-03-04 09:33:30 -07:00
rule-scan.l Reformat embedded C++ code in bison/flex files 2025-03-04 09:33:30 -07:00
Rule.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Rule.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleAction.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleAction.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleCondition.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleCondition.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleMatcher.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RuleMatcher.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
RunState.cc PktSrc/RunState: Scale on first_wallclock and move pseudo realtime logic to RunState 2024-11-12 10:46:55 +01:00
RunState.h PktSrc/RunState: Scale on first_wallclock and move pseudo realtime logic to RunState 2024-11-12 10:46:55 +01:00
scan.l scan.l: Deprecate DNS resolutions of hostname literals 2025-03-05 19:23:08 +01:00
ScannedFile.cc ScannedFile: Allow skipping canonicalization 2025-02-28 17:55:36 +01:00
ScannedFile.h ScannedFile: Allow skipping canonicalization 2025-02-28 17:55:36 +01:00
Scope.cc Return an error if GLOBAL:: prefix is used 2024-08-07 11:58:22 -07:00
Scope.h Reformat 2023-11-06 09:42:46 +00:00
ScriptCoverageManager.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
ScriptCoverageManager.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
ScriptProfile.cc all: Change to use Func::GetName() 2024-09-27 15:11:17 +02:00
ScriptProfile.h all: Change to use Func::GetName() 2024-09-27 15:11:17 +02:00
ScriptValidation.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
ScriptValidation.h Reformat 2023-11-06 09:42:46 +00:00
SerializationFormat.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
SerializationFormat.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
SmithWaterman.cc Reformat 2023-11-06 09:42:46 +00:00
SmithWaterman.h Reformat 2023-11-06 09:42:46 +00:00
Span.h Span: Remove deduction guideline for Iter, Iter, include cleanup 2024-08-16 10:47:45 +02:00
stats.bif Move thread manager stats to telemetry metric 2024-08-05 13:21:44 -07:00
Stats.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Stats.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Stmt.cc ZAM support for keeping "assert" statements 2024-12-03 10:37:38 -07:00
Stmt.h ZAM support for keeping "assert" statements 2024-12-03 10:37:38 -07:00
StmtBase.h fixes & enhancements to location information associated w/ AST nodes & ZAM optimization 2024-02-06 11:03:02 +01:00
StmtEnums.h Remove STMT_ANY statement type 2024-08-07 11:58:21 -07:00
strings.bif Change to use ToStdStringView() in a few other BIFs 2024-01-23 10:38:56 -07:00
Tag.cc Add move constructor to Tag class 2025-03-27 16:12:24 -07:00
Tag.h Add move constructor to Tag class 2025-03-27 16:12:24 -07:00
Timer.cc Add infrastructure for automated expiration of storage entries 2025-03-18 09:32:34 -07:00
Timer.h Add infrastructure for automated expiration of storage entries 2025-03-18 09:32:34 -07:00
Traverse.cc Reformat 2023-11-06 09:42:46 +00:00
Traverse.h Reformat 2023-11-06 09:42:46 +00:00
TraverseTypes.h Reformat 2023-11-06 09:42:46 +00:00
Trigger.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
Trigger.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
TunnelEncapsulation.cc Minor review nits 2024-11-13 14:08:30 -07:00
TunnelEncapsulation.h Set ip_proto when creating new tunnel encapsulations 2025-03-06 09:25:03 -07:00
Type.cc modified merge_types() to skip work if given identical types, which 2024-12-06 16:16:35 -08:00
Type.h support for record extensions when using -O gen-standalone-C++ 2025-01-14 11:12:10 +01:00
types.bif Pass parsed file record information with ReadFile/WriteFile events 2023-08-07 13:44:38 -07:00
UID.cc Reformat 2023-11-06 09:42:46 +00:00
UID.h Reformat 2023-11-06 09:42:46 +00:00
util.cc util: Fix terminate_processing() called from non-main thread 2025-03-09 13:51:00 +01:00
util.h Lay out initial parts for the Storage framework 2025-03-18 09:32:34 -07:00
Val.cc Fix printing type constants like double 2025-03-07 11:54:04 -05:00
Val.h Add interval_as_double argument to control how intervals are converted to JSON 2024-12-03 09:26:08 -07:00
Var.cc framework for --enable-ZAM-profiling configuration 2024-03-19 10:59:49 -07:00
Var.h Reformat 2023-11-06 09:42:46 +00:00
version.c.in Support for configurable localversion 2024-04-17 14:16:47 -07:00
WeirdState.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
WeirdState.h Reformat 2023-11-06 09:42:46 +00:00
zeek-affinity.cc Reformat 2023-11-06 09:42:46 +00:00
zeek-affinity.h Reformat 2023-11-06 09:42:46 +00:00
zeek-bif.h Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
zeek-setup.cc Lay out initial parts for the Storage framework 2025-03-18 09:32:34 -07:00
zeek-setup.h Reformat 2023-11-06 09:42:46 +00:00
zeek.bif EventMgr: Do not cache current event attributes 2025-03-27 19:23:30 +01:00
zeek.pac Add GTPv1 packet analyzer, disable old analyzer 2021-11-23 19:36:50 -07:00
ZeekArgs.cc Add missing copyright line to headers and cc files 2024-12-06 12:50:58 +01:00
ZeekArgs.h ZeekArgs: Deprecate val_list_to_args() 2024-11-21 09:30:57 +01:00
ZeekConfig.cmake.in Revert "Merge remote-tracking branch 'origin/topic/neverlord/gh-3247'" 2023-08-29 12:13:40 -07:00
ZeekList.h Reformat 2023-11-06 09:42:46 +00:00
ZeekPluginBootstrap.cmake.in ZeekPluginBootstrap: Encode Zeek's CMAKE_BUILD_TYPE 2023-06-15 10:46:06 +02:00
ZeekPluginConfig.cmake.in Fix install directory for plugins 2023-04-22 16:12:22 +02:00
ZeekString.cc clang-format: Sort doctest header at the bottom 2024-11-15 17:00:00 +01:00
ZeekString.h ZeekString: Implement move constructor 2024-11-04 16:17:47 +01:00
ZVal.cc Reformat 2023-11-06 09:42:46 +00:00
ZVal.h complete migration of ZAM to use only public ZVal methods 2024-08-16 11:18:58 +02:00