Jan Grashoefer
8d2979e935
af_packet: Cleanup checksum offloading support.
2025-08-20 08:52:26 -07:00
Tim Wojtulewicz
cd297e13dd
af_packet: Support checksum offloading (requires Zeek 5.1).
2025-08-20 08:52:26 -07:00
Arne Welzel
ffbb2823da
af_packet: Remove compile_options() again
...
This seems to trickle through to base Zeek code when done like that.
https://cirrus-ci.com/task/4788073346105344?logs=build#L2298
2025-08-20 08:52:26 -07:00
Arne Welzel
6ad8e3ed24
af_packet: Add -Wunused and -Werror
...
This would've found the enable_defrag issue and also points out another
unused variable.
2025-08-20 08:52:26 -07:00
Arne Welzel
41331e5605
af_packet: Fix enable_defrag
...
Seems enable_defrag was never actually passed down to the relevant functions.
Remove the default parameters to ensure we properly pass it down.
2025-08-20 08:52:26 -07:00
Arne Welzel
62b28177ee
af_packet: Remove linux/version.h include
...
Not sure why this is needed. On my system it defines LINUX_VERSION_CODE
and KERNEL_VERSION and neither is used within the plugin.
2025-08-20 08:52:26 -07:00
Arne Welzel
1dc6718621
af_packet: Remove FindKernelHeaders, not needed
...
There's been some wondering why kernel headers are required to compile
this plugin as it's not providing a kernel module or otherwise provides
functionality related to kernel APIs. AF_PACKET sockets are provided
through user-space APIs.
There may have been historical reasons, but let's move forward and
remove the dependency.
Fixes #29 #24
2025-08-20 08:52:26 -07:00
Jan Grashoefer
46f364c3dd
af_packet: Increase version number.
2025-08-20 08:52:26 -07:00
Jan Grashoefer
630d1edff9
af_packet: Make link type configurable.
2025-08-20 08:52:26 -07:00
Jan Grashoefer
7be67782c2
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Michael Dopheide
e2f40fc5b1
af_packet: Create README file which zeek's ConfigurePackaging.cmake requires
2025-08-20 08:52:25 -07:00
Jan Grashoefer
716916a97d
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
448e69471c
af_packet: Convert README formatting to Markdown.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
1fe008945e
af_packet: Hacked VLAN support.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
b38894a329
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Christian Kreibich
96384be689
af_packet: Avoid Zeek script double-loading problems
...
The plugin mechanism automatically picks up the scripts folder for
plugin-related Zeek scripts. When a package's zkg.meta also declares the scripts
folder the location for package-level scripts, the scripts get installed
redundantly in two places. Zeek cannot recognize them as duplicates, triggering
various errors relating to double-defined symbols.
This moves the package-level scripts to a subdirectory with a placeholder. The
placeholder avoids the zkg install-time warning, whose original fix in e3aea1
introduced this problem.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
74f9d11776
af_packet: Fix Zeek version dependency.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
e945e2c8bb
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
45b3dbf267
af_packet: Slightly reorder README.
2025-08-20 08:52:25 -07:00
Johanna Amann
e4aa85d2a6
af_packet: Add FANOUT_CBPF and FANOUT_EBPF
2025-08-20 08:52:25 -07:00
Michael Dopheide
79842b25c1
af_packet: Namespace changes adding zeek:: as well as zeek/ prefix for include files.
2025-08-20 08:52:25 -07:00
Vlad Grigorescu
e3c5865684
af_packet: GetFanoutMode: Fix case statement (missing breaks).
...
Without this, you can't actually set the fanout mode to anything but HASH.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
62356c38dd
af_packet: Fixed test baseline to include defrag option.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
130f7f7272
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
4deb8f6402
af_packet: Add support for defragmentation of IP packets.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
57dd239917
af_packet: Increase version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
8aa35fed6f
af_packet: Add upgrade note to README.
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
8d0bc4a804
af_packet: Add some missing includes due to changes in Zeek 3.1
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
a7195a7a75
af_packet: File naming and build system changes to support deprecation changes in Zeek 3.0
2025-08-20 08:52:25 -07:00
Jan Grashoefer
1f1627ad73
af_packet: Increased version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
5e3ae6227b
af_packet: Updated README.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
eb3dc4b563
af_packet: Include info files for distribution.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
9cc01769b4
af_packet: Minor improvements to fix compiler warnings.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
b6e52b262c
af_packet: Increased version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
4eaa201821
af_packet: Updated README regarding --with-latest-kernel.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
3adaef434b
af_packet: Added buffer_size option to broctl plugin.
...
The buffer size can now be set in node.cfg using the
af_packet_buffer_size key.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
a89379c353
af_packet: Added bro-pkg instructions to the README.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
1a107bd838
af_packet: Increased version number.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
1dfb115e35
af_packet: Fixed broctl example.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
478265b4f2
af_packet: Fixed compatibility for kernel versions < 3.14.
2025-08-20 08:52:25 -07:00
Jan Grashoefer
742b0820bc
af_packet: Imported version 1.1 of the plugin.
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
32522307d9
gen-zam: Fix clang-tidy and pre-commit warnings
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
a2f4f2adc3
gen-zam: Remove submodule, adapt CMake configuration for Zeek build
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
526238299d
gen-zam: Fix a pile of Coverity findings
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
3845fced55
gen-zam: Require C++20 for builds
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
f6f84184ed
gen-zam: Add clang-format pre-commit hook
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
d5cc0d5135
gen-zam: Add cmake-format pre-commit hook
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
027c075fb0
gen-zam: Use const references instead of copying type values
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
97492b4d70
gen-zam: Reserve space for args vector before pushing back items
2025-08-20 08:52:25 -07:00
Tim Wojtulewicz
75bba1a8f5
gen-zam: Fix clang-tidy bugprone-macro-parentheses/cppcoreguidelines-macro-usage warnings in headers
2025-08-20 08:52:25 -07:00