aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <guskraro@student.gu.se>2017-09-25 21:10:24 +0000
committerRobin Krahl <guskraro@student.gu.se>2017-09-25 21:10:24 +0000
commit06ac465bc528aae94465f4e0e512c4e57d8910c5 (patch)
tree2a99d92d7468c1a465d48e070d3b6d96781b7adc
parent7c55cebd914ac059b9c91a897cb00011b689eb57 (diff)
downloadmidbro-06ac465bc528aae94465f4e0e512c4e57d8910c5.tar.gz
midbro-06ac465bc528aae94465f4e0e512c4e57d8910c5.tar.bz2
bro-script: pasad-simple: Fix typo
Write ‘address’ instead of ‘adress’.
-rw-r--r--bro-script/pasad-simple.bro6
-rw-r--r--bro-script/pasad-simple.log4
2 files changed, 5 insertions, 5 deletions
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