mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Move zeek-af_packet-plugin code into the main Zeek repository
This is based on commit b89a6f64123f778090d1dd6ec48e6b8e8906ea11 from the zeek-af_packet-plugin repository.
This commit is contained in:
parent
68926faf47
commit
5ccf64102b
14 changed files with 772 additions and 16 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