mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Change openflow plugin for broker and allow specification of topics per
instance.
This commit is contained in:
parent
73d22a2dbd
commit
208d150a0e
2 changed files with 11 additions and 9 deletions
|
@ -20,7 +20,7 @@ global of_controller: OpenFlow::Controller;
|
|||
event bro_init()
|
||||
{
|
||||
suspend_processing();
|
||||
of_controller = OpenFlow::broker_new(127.0.0.1, broker_port, 42);
|
||||
of_controller = OpenFlow::broker_new(127.0.0.1, broker_port, "bro/event/openflow", 42);
|
||||
}
|
||||
|
||||
event BrokerComm::outgoing_connection_established(peer_address: string,
|
||||
|
@ -72,7 +72,6 @@ event bro_init()
|
|||
{
|
||||
BrokerComm::enable();
|
||||
BrokerComm::subscribe_to_events("bro/event/openflow");
|
||||
BrokerComm::subscribe_to_events("bro/event/test_event");
|
||||
BrokerComm::listen(broker_port, "127.0.0.1");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue