From f4a7033d3629976f9980cb956e2c29315c6306c0 Mon Sep 17 00:00:00 2001 From: Robert Gustafsson Date: Tue, 3 Oct 2017 09:14:55 +0200 Subject: Some refactoring --- broccoli/modbus.bro | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 broccoli/modbus.bro (limited to 'broccoli/modbus.bro') diff --git a/broccoli/modbus.bro b/broccoli/modbus.bro deleted file mode 100644 index a2caed9..0000000 --- a/broccoli/modbus.bro +++ /dev/null @@ -1,26 +0,0 @@ -@load frameworks/communication/listen -module Pasad; - -redef Communication::listen_port = 47760/tcp; - -redef Communication::listen_ssl = F; - -global response: event(register: count, uid: count); - -redef Communication::nodes += { - ["broevent"] = [$host = 127.0.0.1, $events = /broevent/, $connect=F, $ssl=F] -}; - -event modbus_read_holding_registers_request(c: connection, headers: ModbusHeaders, start_adress: count, quantity: count) - -{ - print fmt("Request: %d", quantity); -} - -event modbus_read_holding_registers_response(c: connection, headers: ModbusHeaders, registers: ModbusRegisters) - -{ - print fmt("Response: %d", registers[0]); - event response(registers[0],headers$uid); -} - -- cgit v1.2.3