mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Refactor misc. Supervisor code
E.g. mostly to start taking advantage of C++17 things like std::optional. Also IntrusivePtr.
This commit is contained in:
parent
c43ffc14fe
commit
8aa77436f9
5 changed files with 116 additions and 121 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <optional>
|
||||
|
||||
#include "net_util.h"
|
||||
#include "util.h"
|
||||
|
@ -14,8 +15,9 @@
|
|||
#include "iosource/PktDumper.h"
|
||||
|
||||
extern void net_init(const std::vector<std::string>& interfaces,
|
||||
const std::vector<std::string>& pcap_input_files,
|
||||
const std::string& pcap_output_file, bool do_watchdog);
|
||||
const std::vector<std::string>& pcap_input_files,
|
||||
const std::optional<std::string>& pcap_output_file,
|
||||
bool do_watchdog);
|
||||
extern void net_run();
|
||||
extern void net_get_final_stats();
|
||||
extern void net_finish(int drain_events);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue