diff options
author | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 13:50:36 +0100 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-31 14:46:05 +0100 |
commit | da4c77d51f971e6abe838db76d55c7fc4c103d5d (patch) | |
tree | 1f2373a25bda4ac3c3a5f5200f6c358510256dd6 /script/pasad-simple.bro | |
parent | 87779bb56295a2c20076c9670522490b91789dc0 (diff) | |
download | midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.gz midbro-da4c77d51f971e6abe838db76d55c7fc4c103d5d.tar.bz2 |
Repo cleanup
Diffstat (limited to 'script/pasad-simple.bro')
-rw-r--r-- | script/pasad-simple.bro | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/script/pasad-simple.bro b/script/pasad-simple.bro index db3b4be..4a0505a 100644 --- a/script/pasad-simple.bro +++ b/script/pasad-simple.bro @@ -5,7 +5,7 @@ ## requests and responses are exchanged within the same connection. I am not ## sure whether this really holds. -module Pasad; +module Midbro; export { redef enum Log::ID += { LOG }; @@ -25,12 +25,12 @@ export { } redef record connection += { - pasad: Info &optional; + midbro: Info &optional; }; event bro_init() &priority=5 { - Log::create_stream(Pasad::LOG, [$columns=Info, $path="pasad-simple"]); + Log::create_stream(Midbro::LOG, [$columns=Info, $path="midbro-simple"]); } event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_address: count, quantity: count) @@ -44,13 +44,13 @@ event modbus_read_holding_registers_request(c: connection, headers: ModbusHeader $ip_orig=c$id$orig_h, $ip_resp=c$id$resp_h ]; - c$pasad = rec; + c$midbro = rec; } event modbus_read_holding_registers_response(c: connection, headers: ModbusHeaders, registers: ModbusRegisters) { - c$pasad$tid_response = headers$tid; - c$pasad$ts_response = network_time(); - c$pasad$registers = registers; - Log::write(Pasad::LOG, c$pasad); + c$midbro$tid_response = headers$tid; + c$midbro$ts_response = network_time(); + c$midbro$registers = registers; + Log::write(Midbro::LOG, c$midbro); } |