Tim Wojtulewicz
1262109e5a
Move threading classes to zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
f310795d79
Move probabilistic code into zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
be92bd536f
Move iosource code to zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
45b5c6e619
Move logging code to zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
9a800265ff
Move input code to zeek namespaces
2020-08-20 15:55:17 -07:00
Tim Wojtulewicz
14408235b8
Move file_analysis code to zeek namespaces
2020-08-20 15:55:17 -07:00
Jon Siwek
903191e568
Merge remote-tracking branch 'origin/topic/timw/coverity'
...
* origin/topic/timw/coverity:
Mark FileAssembler destructor as default, remove implementation
Remove a few protected or private no-op constructors
Properly initialize Timer::type. Fixes Coverity 1431144.
Properly initialize members of Reassembler. Fixes Coverity 1413348.
Fix a number of Coverity issues in Dict
2020-08-20 14:57:06 -07:00
FlyingWithJerome
512361ce12
remove variables in netvar, use tabs in DNS.h and polish comments in dns events.
2020-08-20 11:02:44 -04:00
FlyingWithJerome
3b3197106d
add data+=option_len to skip unknown bytes
2020-08-20 09:04:56 -04:00
FlyingWithJerome
69c8b01f58
better explanation to server cookie
2020-08-20 09:04:56 -04:00
FlyingWithJerome
d75a385f8f
remove data+=option_len error in cookie and keepalive
2020-08-20 09:04:56 -04:00
FlyingWithJerome
74efbd0abc
add EDNS cookie parsing
2020-08-20 09:04:56 -04:00
FlyingWithJerome
c5b4311a82
lazy commit
2020-08-20 09:04:56 -04:00
FlyingWithJerome
89af7d6d4e
lazy commit
2020-08-20 09:04:56 -04:00
FlyingWithJerome
e121d89d4e
lazy commit
2020-08-20 09:04:56 -04:00
FlyingWithJerome
84d609b333
add testcases
2020-08-20 09:04:56 -04:00
FlyingWithJerome
7dcf974daf
add units (100ms) to comments
2020-08-20 09:04:56 -04:00
FlyingWithJerome
1d2b531062
initial adding EDNS TCP keepalive
2020-08-20 09:04:56 -04:00
Jon Siwek
164b1f6514
GH-594: Improve table initialization type-check error messages
2020-08-19 19:59:19 -07:00
Tim Wojtulewicz
117f243f18
Mark FileAssembler destructor as default, remove implementation
2020-08-19 15:26:32 -07:00
Tim Wojtulewicz
f597e925aa
Remove a few protected or private no-op constructors
2020-08-19 15:19:01 -07:00
Tim Wojtulewicz
f7bec7d7ef
Merge remote-tracking branch 'origin/topic/jsiwek/strings-bif-warnings'
...
* origin/topic/jsiwek/strings-bif-warnings:
Misc strings.bif adjustments
2020-08-19 14:36:12 -07:00
Tim Wojtulewicz
589dcf5697
Merge remote-tracking branch 'origin/topic/jsiwek/coverity-1431151'
...
* origin/topic/jsiwek/coverity-1431151:
Use constexpr for IPAddr::v4_mapped_prefix declaration
2020-08-19 14:12:26 -07:00
Jon Siwek
3fc86a39b8
Merge remote-tracking branch 'origin/topic/robin/gh-467-addto'
...
- In this merge commit: fixed parentheses/typo that breaks compilation
* origin/topic/robin/gh-467-addto:
Catch if &add_func/&delete_func is applied to IDs that don't have values.
2020-08-18 12:15:29 -07:00
Robin Sommer
45bef16be0
Catch if &add_func/&delete_func is applied to IDs that don't have values.
...
We do to allow adding &add_func to a global that's not immediately
initialized, as a later redef may fix that.
Closes #467 .
2020-08-18 10:34:05 +00:00
Jon Siwek
d12edad6a1
Misc strings.bif adjustments
...
* Declare rfind_str() with correct return type
* Fix compiler warnings for signed/unsigned comparisons
2020-08-17 13:53:36 -07:00
Tim Wojtulewicz
914a4d6342
Properly initialize Timer::type. Fixes Coverity 1431144.
2020-08-17 12:00:13 -07:00
Tim Wojtulewicz
e9ec2ee06d
Properly initialize members of Reassembler. Fixes Coverity 1413348.
2020-08-17 11:58:07 -07:00
Tim Wojtulewicz
ce98666621
Fix a number of Coverity issues in Dict
...
1431186: Asserting that an unsigned value is >= 0 is pointless
1431188/1431189/1431191: Side effect of using an assignment operator in a call to ASSERT()
1431193: Dereference after null check could lead to null being used
1431195: Use of rand() replaced with random()
2020-08-17 11:31:22 -07:00
Jon Siwek
88b2b01819
Use constexpr for IPAddr::v4_mapped_prefix declaration
...
The inconsistent use of constexpr in the definition but not declaration
causes an unrecoverable error for Coverity as seen in issue 1431151
2020-08-17 10:59:15 -07:00
Tim Wojtulewicz
5816ea27e9
Fix compiler warning from missing namepsace qualification
2020-08-14 14:01:16 -07:00
Tim Wojtulewicz
b89935107d
Merge remote-tracking branch 'origin/topic/timw/178-string-functions'
...
* origin/topic/timw/178-string-functions:
GH-178: Add new string bif methods based on python string utilities
2020-08-14 10:00:29 -07:00
Johanna Amann
7f267d3e87
Merge remote-tracking branch 'origin/topic/jazoff/gh-1105'
...
* origin/topic/jazoff/gh-1105:
Accept bracketed ipv6 addresses
2020-08-12 20:04:37 +00:00
Johanna Amann
123e45ca4e
Merge remote-tracking branch 'origin/topic/seth/config-reader-musl-support'
...
* origin/topic/seth/config-reader-musl-support:
Fix config reader regular expression for MUSL.
2020-08-12 19:50:43 +00:00
Tim Wojtulewicz
f1ed66d52c
Fix some printf warnings with size_t values
2020-08-11 13:42:03 -07:00
Tim Wojtulewicz
c6e7d14757
Merge remote-tracking branch 'origin/topic/timw/open-dict'
...
* origin/topic/timw/open-dict: (40 commits)
Move Dict constants to detail namespace
Add a few missing deprecation fixes
Adjust Dict whitespace/style
Adjust more btest timings
Improve termination reliability/speed for brokerstore btests
General btest cleanup
Update NEWS about change in Dictionary implementation
Improve Intel expire-item btest to be less time-sensitive
Improve btests with unstable table/set output ordering
Update doc submodule
Adjust a few btests that were unstable due to time-sensitivity
Fix DNS script deleting a table element while iterating
Improve a brokerstore btest to filter out Broker connection messages
Sort output of a few SumStats cluster tests
Fix extract_first_email_addr() to really return the first email
Add find_all_ordered() BIF
Extend external test suite canonifier with set-sorting logic
Update btests/baselines for OpenDict compat
Fix new/malloc/delete/free mismatches in Dictionary code
Add explanation for a Dict TODO item
...
2020-08-11 11:38:14 -07:00
Tim Wojtulewicz
47f3eb69fa
Move Dict constants to detail namespace
2020-08-11 11:26:22 -07:00
Tim Wojtulewicz
c795f2014f
Add a few missing deprecation fixes
2020-08-11 11:26:22 -07:00
Jon Siwek
ba1611c21f
Adjust Dict whitespace/style
2020-08-11 11:26:22 -07:00
Jon Siwek
a852ab4c39
Add find_all_ordered() BIF
...
Operates similar to find_all(), except returns a vector instead of
set to allow preservation of order/duplicates.
2020-08-11 11:26:21 -07:00
Jon Siwek
37d3cfbd44
Fix new/malloc/delete/free mismatches in Dictionary code
2020-08-11 11:26:21 -07:00
Jon Siwek
d566b8ca31
Add explanation for a Dict TODO item
2020-08-11 11:26:21 -07:00
Jon Siwek
1d33dbc6bc
Fix compiler warning in Dictionary debug/dump printf format string
2020-08-11 11:26:21 -07:00
Tim Wojtulewicz
0c7e4d62ee
Overwrite old Dict.h/cc with new ones
2020-08-11 11:26:21 -07:00
Tim Wojtulewicz
351aca5e52
Add namespaces for OpenDict files
2020-08-11 11:26:21 -07:00
Tim Wojtulewicz
59d5c85903
Add unit tests from Dict into OpenDict files
2020-08-11 11:26:21 -07:00
Tim Wojtulewicz
32653c86af
Build fixups
...
- Fix some clang-tidy warnings
- Add std:: namespaces for ofstream and ios
- Remvoe some unused methods
2020-08-11 11:26:21 -07:00
jasonlue
394e067f7b
Massive formatting cleanup
2020-08-11 11:26:21 -07:00
jasonlue
2a0609431c
Remove key reference after insertion because the key may become invalid afterwards.
2020-08-11 11:26:21 -07:00
jasonlue
d3eeeb0f4c
add Clustered Hashing based Open Addressing Dict. To replace the existing dict, #define USE_OPEN_DICT
2020-08-11 11:26:21 -07:00