diff --git a/src/app-layer-modbus.h b/src/app-layer-modbus.h index fba43db74a..99e07e885f 100644 --- a/src/app-layer-modbus.h +++ b/src/app-layer-modbus.h @@ -88,6 +88,8 @@ typedef struct ModbusTransaction_ { uint8_t function; uint8_t category; uint8_t type; + uint8_t replied; /**< bool indicating request is replied to. */ + union { uint16_t subFunction; uint8_t mei; @@ -107,8 +109,6 @@ typedef struct ModbusTransaction_ { AppLayerDecoderEvents *decoder_events; /**< per tx events */ - uint8_t replied; /**< bool indicating request is replied to. */ - TAILQ_ENTRY(ModbusTransaction_) next; } ModbusTransaction;