Commit graph

1202 commits

Author SHA1 Message Date
Jon Siwek
009c1488fc Update submodule(s)
[nomail]
2020-04-30 16:41:05 -07:00
Jon Siwek
a08b1ff56f Add warning message for unknown Broker statuses
There's now a couple placeholder/unimplemented status values in Broker
related to upcoming routing features that we don't want to handle
explicitly for compatibility reasons, but also don't want the compiler
warning about unhandled values in the switch.
2020-04-29 15:28:18 -07:00
Jon Siwek
fddb06c3cd Update submodule(s)
[nomail]
2020-04-29 14:25:53 -07:00
Robin Sommer
f7fd24cf15 Updating submodule. 2020-04-28 10:07:31 +00:00
Tim Wojtulewicz
17f72d6be6 Update submodule
[nomail]
2020-04-24 16:22:33 -07:00
Jon Siwek
81517bd703 Update deprecated BifEvent::generate_* usages 2020-04-17 18:42:58 -07:00
Jon Siwek
eb77411dbf Change BIFs to return a wrapper object
That allows returning either Val* or IntrusivePtr<T>.  The former could
eventually be deprecated, but it's used extensively at the moment.
2020-04-16 16:40:07 -07:00
Johanna Amann
730f78d0c2 Merge remote-tracking branch 'origin/topic/jsiwek/no-vla'
* origin/topic/jsiwek/no-vla:
  GH-895: Remove use of Variable-Length-Arrays

Fixes GH-895
2020-04-16 14:18:38 -07:00
Jon Siwek
15a19414ca GH-895: Remove use of Variable-Length-Arrays 2020-04-15 16:25:21 -07:00
Jon Siwek
991501a3d2 Update submodule(s)
[nomail]
2020-04-15 15:14:35 -07:00
Tim Wojtulewicz
ba1c03188f Merge remote-tracking branch 'origin/topic/jsiwek/alternate-hook-event-prototypes'
* origin/topic/jsiwek/alternate-hook-event-prototypes:
  Add warning for ineffective &default arguments in handlers
  Fix frame size allocation of alternate event/hook handlers
  Emit error for alternate event/hook prototype args with attributes
  Improve alternate event/hook prototype matching
  Allow alternate event/hook prototype declarations
2020-04-13 15:00:25 -07:00
Jon Siwek
ce9183a2ed Fix Broker topics used to uniquely identify cluster nodes
Node-specific topic prefix subscriptions/publications now add a trailing
slash like "zeek/cluster/node/<name>/".  Without the trailing slash,
messages attempting to target "proxy-10" may also be sent to "proxy-1"
since subscription matching is prefix-based.
2020-04-10 14:36:00 -07:00
Jon Siwek
714e2f736a Update submodule(s)
[nomail]
2020-04-09 22:57:55 -07:00
Jon Siwek
8c0e8ecd28 Allow alternate event/hook prototype declarations
The alternates must be some subset of the canonical prototype (the one
that's first declared) and allows users to define handlers for any
such prototype.  Example:

    # Prototype declarations
    global my_event: event(s: string, c: count);
    global my_event: event(c: count);
    global my_event: event();

    # Handler definitions
    event my_event(s: string, c: count) { print s, c; }
    event my_event(c: count) { print c; }
    event my_event() { }

This allows handlers to consume a subset of the arguments or even
re-order them.  This makes it easier to either extend an existing
event/hook's arguments and/or deprecate usages of certain prototypes.
2020-04-01 17:25:28 -07:00
Jon Siwek
eefafdc1e1 Updating submodule(s).
[nomail]
2020-04-01 13:51:31 -07:00
Johanna Amann
5453c6004e Merge remote-tracking branch 'origin/topic/jsiwek/rocksdb-opt-in'
* origin/topic/jsiwek/rocksdb-opt-in:
  GH-878: Make RocksDB usage opt-in and add --enable-rocksdb configure flag

Fixes GH-878
2020-03-30 13:23:09 -07:00
Tim Wojtulewicz
85c6c2b9ee Merge remote-tracking branch 'origin/topic/jsiwek/runtime-exception-leak-cleanup'
* origin/topic/jsiwek/runtime-exception-leak-cleanup:
  Func::DescribeDebug: move a NumFields() call out of loop
  Use const-ref parameter for zeek::val_list_to_args()
  Fix missing IntrusivePtr.h include and ambiguous ODesc::Add call
  Remove TimerMgr arg from event queuing/scheduling methods
  Deprecate Analyzer::ConnectionEvent()
  Deprecate file_analysis::File::FileEvent methods using val_list args
  Deprecate Connection::ConnectionEvent methods
  Deprecate EventMgr::QueueEventFast() and update usages to Enqueue()
  Deprecate EventMgr::QueueEvent() and update usages to Enqueue()
  Deprecate Func::Call(val_list*, ...)
  Use vector<IntrusivePtr<Val>> for Func::Call and Event queuing args
  Fix memory leak in Zeek when-statement bodies with runtime errors
  Change TableVal::RecoverIndex() to return IntrusivePtr
  Use IntrusivePtr in TableVal::CallExpireFunc
  Fix memory leak when runtime error occurs in a Zeek for-loop
  Enable leak checks for btests that produce runtime exceptions
2020-03-27 11:49:45 -07:00
Jon Siwek
75d7396f2d Updating submodule(s).
[nomail]
2020-03-27 11:16:46 -07:00
Jon Siwek
ccee29d4d3 Updating submodule(s).
[nomail]
2020-03-26 13:34:36 -07:00
Jon Siwek
3c1ad8b962 GH-878: Make RocksDB usage opt-in and add --enable-rocksdb configure flag 2020-03-26 12:18:42 -07:00
Jon Siwek
66156b4eee Updating submodule(s).
[nomail]
2020-03-26 12:00:59 -07:00
Jon Siwek
54bc3bd5c6 Remove TimerMgr arg from event queuing/scheduling methods
It's not useful for anything since there's only ever a single TimerMgr.
2020-03-25 19:05:17 -07:00
Jon Siwek
6980f63a91 Deprecate EventMgr::QueueEventFast() and update usages to Enqueue() 2020-03-25 16:09:33 -07:00
Jon Siwek
4e1ac4e124 Use vector<IntrusivePtr<Val>> for Func::Call and Event queuing args
This change may break BIFs that use @ARGS@, @ARG@, or @ARGC@ since their
types have changed.
2020-03-24 16:50:18 -07:00
Johanna Amann
8a4ccabc3e Merge remote-tracking branch 'origin/topic/jsiwek/fix-greedy-flowbuffer-bounds-check'
* origin/topic/jsiwek/fix-greedy-flowbuffer-bounds-check:
  Add test case for binpac flowbuffer frame length parsing bug
2020-03-24 13:49:58 -07:00
Jon Siwek
b0b1fffe3e Updating submodule(s).
[nomail]
2020-03-23 10:22:51 -07:00
Jon Siwek
7e57f0788c Add test case for binpac flowbuffer frame length parsing bug 2020-03-19 22:09:23 -07:00
Jon Siwek
d560aceced Updating submodule(s).
[nomail]
2020-03-13 23:02:23 -07:00
Jon Siwek
e5e4fd6af6 Add branch whitelist for CI notifications 2020-03-13 13:41:46 -07:00
Jon Siwek
dc7c7d004b Updating submodule(s).
[nomail]
2020-03-11 10:21:43 -07:00
Jon Siwek
065d055700 Updating submodule(s).
[nomail]
2020-03-09 12:54:59 -07:00
Jon Siwek
2c46be0d6e Updating submodule(s).
[nomail]
2020-03-06 11:58:19 -08:00
Jon Siwek
64855dfa0e Updating submodule(s).
[nomail]
2020-03-06 10:40:35 -08:00
Johanna Amann
0c44c3135c Merge remote-tracking branch 'origin/topic/jsiwek/gh-836-move-3rdparties-up'
* origin/topic/jsiwek/gh-836-move-3rdparties-up:
  Move libkqueue submodule to the aux directory
  Move rapidjson submodule to aux directory
2020-03-06 07:59:59 -08:00
Jon Siwek
26265246c1 Move libkqueue submodule to the aux directory 2020-03-05 19:40:03 -08:00
Jon Siwek
ba9c06fc2b Move rapidjson submodule to aux directory
This also now installs the full rapidjson include/ tree in order to
allow external plugins to properly build if they include
threading/formatters/JSON.h
2020-03-05 19:24:13 -08:00
Jon Siwek
1b252038c5 Updating submodule(s).
[nomail]
2020-03-02 11:41:54 -08:00
Jon Siwek
202fff1003 Updating submodule(s).
[nomail]
2020-03-02 10:57:33 -08:00
Jon Siwek
ea4ca815c6 Updating submodule(s).
[nomail]
2020-03-02 10:34:21 -08:00
Jon Siwek
f69aa03923 Updating submodule(s).
[nomail]
2020-02-28 13:27:19 -08:00
Jon Siwek
5a6799dd34 Update submodules 2020-02-25 19:29:06 -08:00
Jon Siwek
2654ed2777 Update broker/cmake modules 2020-02-25 18:01:54 -08:00
Jon Siwek
302c94299f Updating submodule(s).
[nomail]
2020-02-24 16:42:24 -08:00
Jon Siwek
bf212b2d3c Updating submodule(s).
[nomail]
2020-02-22 11:55:34 -08:00
Jon Siwek
e88516c748 Updating submodule(s).
[nomail]
2020-02-20 17:21:58 -08:00
Jon Siwek
0a9251ae51 Updating submodule(s).
[nomail]
2020-02-19 10:33:17 -08:00
Jon Siwek
2b932128a4 Updating submodule(s).
[nomail]
2020-02-18 15:21:38 -08:00
Jon Siwek
e447ca5eb6 Updating submodule(s).
[nomail]
2020-02-18 14:50:05 -08:00
Jon Siwek
eafcea86d5 Updating submodule(s).
[nomail]
2020-02-18 10:19:51 -08:00
Jon Siwek
2a7f2e0217 Updating submodule(s).
[nomail]
2020-02-15 11:10:56 -08:00