From 06ac465bc528aae94465f4e0e512c4e57d8910c5 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 25 Sep 2017 21:10:24 +0000 Subject: bro-script: pasad-simple: Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Write ‘address’ instead of ‘adress’. --- bro-script/pasad-simple.bro | 6 +++--- bro-script/pasad-simple.log | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'bro-script') diff --git a/bro-script/pasad-simple.bro b/bro-script/pasad-simple.bro index d5f3e10..06ae9b2 100644 --- a/bro-script/pasad-simple.bro +++ b/bro-script/pasad-simple.bro @@ -16,7 +16,7 @@ export { rtype: string &log; tid_request: count &log; tid_response: count &log &optional; - start_adress: count &log; + start_address: count &log; quantity: count &log; registers: ModbusRegisters &log &optional; }; @@ -31,9 +31,9 @@ event bro_init() &priority=5 Log::create_stream(Pasad::LOG, [$columns=Info, $path="pasad"]); } -event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_adress: count, quantity: count) +event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_address: count, quantity: count) { - local rec: Info = [$ts_request=network_time(), $rtype="holding", $tid_request=headers$tid, $start_adress=start_adress, $quantity=quantity]; + local rec: Info = [$ts_request=network_time(), $rtype="holding", $tid_request=headers$tid, $start_address=start_address, $quantity=quantity]; c$pasad = rec; } diff --git a/bro-script/pasad-simple.log b/bro-script/pasad-simple.log index e7979e5..8bdc706 100644 --- a/bro-script/pasad-simple.log +++ b/bro-script/pasad-simple.log @@ -3,8 +3,8 @@ #empty_field (empty) #unset_field - #path pasad -#open 2017-09-25-20-54-23 -#fields ts_request ts_response rtype tid_request tid_response start_adress quantity registers +#open 2017-09-25-21-09-19 +#fields ts_request ts_response rtype tid_request tid_response start_address quantity registers #types time time string count count count count vector[count] 1480337775.934099 1480337775.971379 holding 2538 2538 80 8 48979,7282,15636,9709,48404,9709,16943,32237 1480337776.128206 1480337776.131736 holding 2547 2547 60 12 17173,45657,49927,27307,17146,46421,17120,57951,17107,22452,16795,13653 -- cgit v1.2.3