Vern Paxson
f619cc2a89
fix for '?' operator precedence when compiling scripts to C++
2025-09-15 14:14:30 -07:00
Vern Paxson
ca49e69aac
tracking of event groups for compilation to standalone-C++
2025-09-15 14:07:29 -07:00
Vern Paxson
e5210160ea
for -O gen-standalone-C++, make the presence of uncompilable functions fatal unless -O allow-cond is used
2025-09-11 13:30:40 -06:00
Tim Wojtulewicz
26ea7cc655
Clang-tidy fixes for recent IDPtr changes
2025-09-03 15:34:29 -07:00
Vern Paxson
3ff3eee398
fixup! fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
2025-09-03 12:42:58 -07:00
Vern Paxson
a6f9d69c91
fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
2025-09-03 11:20:29 -07:00
Vern Paxson
7397dc6568
fixup! shift much of the internal use of ID* identifier pointers over to IDPtr objects
2025-09-03 11:19:38 -07:00
Vern Paxson
693aa244f9
shift much of the internal use of ID* identifier pointers over to IDPtr objects
2025-09-03 11:19:31 -07:00
Vern Paxson
1c7c1b62f6
maintenance update for script optimization's knowledge of BiFs
2025-09-03 11:14:22 -07:00
Tim Wojtulewicz
b592b6c998
Use .contains() instead of .find() or .count()
2025-09-02 16:42:52 +00:00
Vern Paxson
5b74b3d0ac
maintenance updates for ZAM BiF-tracking
2025-08-16 14:10:17 -07:00
Arne Welzel
d7fbd49d9e
Merge remote-tracking branch 'origin/topic/vern/zam-record-fields-fixes'
...
* origin/topic/vern/zam-record-fields-fixes:
fixes for specialized ZAM operations needing to check whether record fields exist
2025-07-30 10:08:21 +02:00
Vern Paxson
47bf6af6a5
fixes for specialized ZAM operations needing to check whether record fields exist
2025-07-30 08:36:04 +02:00
Tim Wojtulewicz
72c79006ac
Switch to using std::ranges algorithms
2025-07-28 13:03:25 -07:00
Tim Wojtulewicz
7a5209855f
Add ODesc::Size() that returns size_t, deprecate ODesc::Len()
2025-07-25 09:13:10 -07:00
Johanna Amann
4399f171ae
Merge remote-tracking branch 'origin/topic/johanna/pppoe-session-id-logging'
...
* origin/topic/johanna/pppoe-session-id-logging:
Update external tests for pppoe-session-id conn.log changes
PPPoE: add session id logging
2025-07-24 07:57:18 +01:00
Tim Wojtulewicz
205c72d26f
Add some additional std::moves reported by Coverity
2025-07-23 15:17:53 -07:00
Tim Wojtulewicz
4c58fb26c4
Fix uninitialized class member Coverity findings
2025-07-23 15:17:53 -07:00
Johanna Amann
e5a434c392
PPPoE: add session id logging
...
This adds a new PacketAnalyzer::PPPoE::session_id bif, which extracts
the PPPoE session ID from the current packet.
Furthermore, a new policy script is added which adds the pppoe session
id to the connection log.
Related to GH-4602
2025-07-23 13:43:45 +01:00
Tim Wojtulewicz
a1d121e5aa
Use std::string/string_view versions of starts_with/ends_with where appropriate
...
The util:: versions of these methods remain as a thin wrapper around them so
they can be used with const char* arguments. Otherwise callers have to manually
make string_view objects from the input.
s Please enter the commit message for your changes. Lines starting
2025-07-17 09:08:54 -07:00
Evan Typanski
a739d47835
Merge remote-tracking branch 'origin/topic/vern/add-del-void-exprs'
...
* origin/topic/vern/add-del-void-exprs:
crash fixes for constructs that expect add/delete expressions to return values
2025-07-11 12:58:56 -04:00
Vern Paxson
fe5c953d31
crash fixes for constructs that expect add/delete expressions to return values
2025-07-11 12:56:08 -04:00
Tim Wojtulewicz
57a3c733d1
Reduce some false-positive warnings from GCC to warnings with -Werror
...
This also works around some of the same warnings. These are known bugs
in GCC 11+ and GCC 13.x.
2025-07-10 14:07:08 -07:00
Vern Paxson
1d43760862
ZAM optimizer fix for += / -= set operations
2025-07-09 13:40:33 -07:00
Arne Welzel
d42d467965
Merge remote-tracking branch 'origin/topic/vern/line-number-ordering'
...
* origin/topic/vern/line-number-ordering:
Bump ZeekJS to work with new Location constructor
remove non-functional column information from Location objects
isolate Location specifics to private class variables to enforce correct line number ordering
2025-07-08 10:40:58 +02:00
Vern Paxson
a9b37467a4
remove non-functional column information from Location objects
2025-07-08 10:39:53 +02:00
Vern Paxson
5c63133226
isolate Location specifics to private class variables to enforce correct line number ordering
2025-07-08 10:39:28 +02:00
Arne Welzel
0cc30faa55
script_opt/IDOptInfo: Add NOLINT(bugprone-branch-clone)
2025-07-07 18:52:11 +02:00
Vern Paxson
0c1e248572
fix for error in ZAM's constant propagation logic
2025-07-04 16:05:46 -07:00
Benjamin Bannier
627c3ad726
Fix clang-tidy readability-isolate-declaration warnings
...
I missed one of these in review so a machine is probably better at
catching them.
I fixed the existing instances which where largely in code which look
dated. Where possible I slightly reorganized the code so we do not have
to leave values uninitialized, but did not touch up anything else.
2025-06-30 14:19:06 -07:00
root
da89e7ee6e
Renamed
2025-06-25 21:10:08 +05:30
bhaskarbhar
04d6fa3cb7
Add get_tags_by_category BIF method
2025-06-24 13:47:49 -07:00
Tim Wojtulewicz
311a744a20
Fix clang-tidy cppcoreguidelines-virtual-class-destructor warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
e613e7c304
Fix clang-tidy modernize-use-override warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
cb78d2202f
Fix clang-tidy modernize-use-emplace warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
ed202b36b2
Fix clang-tidy modernize-return-braced-init-list warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
6b34d4d094
Fix clang-tidy performance-unnecessary-copy-initialization warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
baf00a54e8
Fix clang-tidy performance-inefficient-vector-operation warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
f386deba94
Fix clang-tidy performance-enum-size warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
13b7713889
Fix clang-tidy bugprone-macro-parentheses warnings in headers
2025-06-23 08:35:24 -07:00
Tim Wojtulewicz
f8c04998af
Remove using util.h in various headers in favor of util-types.h
2025-06-11 11:11:54 -07:00
Tim Wojtulewicz
a3078f3132
Fix clang-tidy modernize-use-emplace findings
2025-06-06 11:43:06 -07:00
Tim Wojtulewicz
0227e3a545
Fix clang-tidy modernize-use-bool-literals findings
2025-06-06 11:43:06 -07:00
Tim Wojtulewicz
17c14a3ce1
Fix clang-tidy modernize-return-braced-init-list findings
2025-06-06 11:43:06 -07:00
Tim Wojtulewicz
f3588657bf
Fix clang-tidy modernize-loop-convert findings
2025-06-06 11:43:06 -07:00
Tim Wojtulewicz
460fe24a9a
Fix clang-tidy cppcoreguidelines-macro-usage findings (macro functions)
2025-06-04 09:24:05 -07:00
Tim Wojtulewicz
ad99a6821e
Fix clang-tidy cppcoreguidelines-macro-usage findings (macros as constants)
2025-06-04 09:24:05 -07:00
Tim Wojtulewicz
d6d56d330b
script_opt: Add missing virtual destructor (cppcoreguidelines-virtual-class-destructor)
2025-06-04 09:24:05 -07:00
Vern Paxson
9117ccab12
fix for more robustly finding BTests to assess for -O gen-C++
2025-05-31 12:50:14 -07:00
Vern Paxson
e165e64fa5
fix for -O gen-C++ dealing with type constants of unnamed compound types
2025-05-31 12:49:37 -07:00