mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Add pcap_file option to supervised nodes.
This allows to start Supervised nodes with a pcap_file argument rather than interface. This is based on changes from @J-Gras.
This commit is contained in:
parent
859ecc7b8b
commit
1882307cf3
7 changed files with 169 additions and 0 deletions
|
@ -138,6 +138,11 @@ public:
|
|||
* Typically used by worker nodes.
|
||||
*/
|
||||
std::optional<std::string> interface;
|
||||
/**
|
||||
* The PCAP file name from which the node read/analyze packets.
|
||||
* Typically used by worker nodes.
|
||||
*/
|
||||
std::optional<std::string> pcap_file;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -199,6 +204,10 @@ public:
|
|||
* The interface name from which the node should read/analyze packets.
|
||||
*/
|
||||
std::optional<std::string> interface;
|
||||
/**
|
||||
* The PCAP file name from which the node should read/analyze packets.
|
||||
*/
|
||||
std::optional<std::string> pcap_file;
|
||||
/**
|
||||
* The working directory that should be used by the node.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue