mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
af_packet: Remove submodule, adapt CMake/code for Zeek build
This commit is contained in:
parent
62e27ee6f7
commit
6002f63a37
19 changed files with 128 additions and 204 deletions
|
@ -5691,6 +5691,31 @@ export {
|
|||
};
|
||||
}
|
||||
|
||||
module AF_Packet;
|
||||
|
||||
export {
|
||||
## Size of the ring-buffer.
|
||||
const buffer_size = 128 * 1024 * 1024 &redef;
|
||||
## Size of an individual block. Needs to be a multiple of page size.
|
||||
const block_size = 4096 * 8 &redef;
|
||||
## Retire timeout for a single block.
|
||||
const block_timeout = 10msec &redef;
|
||||
## Toggle whether to use hardware timestamps.
|
||||
const enable_hw_timestamping = F &redef;
|
||||
## Toggle whether to use PACKET_FANOUT.
|
||||
const enable_fanout = T &redef;
|
||||
## Toggle defragmentation of IP packets using PACKET_FANOUT_FLAG_DEFRAG.
|
||||
const enable_defrag = F &redef;
|
||||
## Fanout mode.
|
||||
const fanout_mode = FANOUT_HASH &redef;
|
||||
## Fanout ID.
|
||||
const fanout_id = 23 &redef;
|
||||
## Link type (default Ethernet).
|
||||
const link_type = 1 &redef;
|
||||
## Checksum validation mode.
|
||||
const checksum_validation_mode: ChecksumMode = CHECKSUM_ON &redef;
|
||||
}
|
||||
|
||||
module DCE_RPC;
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue