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:
Jan Grashoefer 2022-07-08 17:31:20 +02:00 committed by Arne Welzel
parent 859ecc7b8b
commit 1882307cf3
7 changed files with 169 additions and 0 deletions

View file

@ -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.
*/