enip: fix int warnings

There seems to fix a real bug when an ENIP connection
has more than 65k transactions
pull/6642/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 86b5c81ea2
commit 86f5d33f75

@ -120,8 +120,8 @@ typedef struct ENIPEncapAddresItem_
{
uint16_t type;
uint16_t length;
uint16_t conn_id;
uint16_t sequence_num;
uint32_t conn_id;
uint32_t sequence_num;
} ENIPEncapAddresItem;
/**
@ -182,7 +182,7 @@ typedef struct CIPServiceEntry_
} request;
struct
{
uint8_t status;
uint16_t status;
} response;
};
@ -195,7 +195,7 @@ typedef struct CIPServiceEntry_
typedef struct ENIPTransaction_
{
struct ENIPState_ *enip;
uint16_t tx_num; /**< internal: id */
uint64_t tx_num; /**< internal: id */
uint16_t tx_id; /**< transaction id */
uint16_t service_count;

@ -93,7 +93,7 @@ static void *ENIPGetTx(void *alstate, uint64_t tx_id)
static uint64_t ENIPGetTxCnt(void *alstate)
{
return ((uint64_t) ((ENIPState *) alstate)->transaction_max);
return ((ENIPState *)alstate)->transaction_max;
}
static AppLayerDecoderEvents *ENIPGetEvents(void *tx)

Loading…
Cancel
Save