mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This allows to start Supervised nodes with a pcap_file argument rather than interface. This is based on changes from @J-Gras.
19 lines
478 B
Text
19 lines
478 B
Text
# @TEST-DOC: Creating a node with inteface and pcap_file fails.
|
|
# @TEST-EXEC: zeek -j -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
# Providing interface and pcap_file is an error.
|
|
|
|
event zeek_init()
|
|
{
|
|
print "is_supervisor", Supervisor::is_supervisor();
|
|
local sn = Supervisor::NodeConfig(
|
|
$name="grault",
|
|
$interface="lo",
|
|
$pcap_file="/dev/null",
|
|
);
|
|
local res = Supervisor::create(sn);
|
|
|
|
print res != "" ? "PASS (got error)" : " FAIL (no error)", res;
|
|
terminate();
|
|
}
|