DNS: move internal tx id tracking to u64

pull/418/merge
Victor Julien 12 years ago
parent e8ad876b48
commit ebab9aee83

@ -265,7 +265,7 @@ void DNSStoreQueryInState(DNSState *dns_state, const uint8_t *fqdn, const uint16
if (tx == NULL)
return;
dns_state->transaction_max++;
SCLogDebug("dns_state->transaction_max updated to %u", dns_state->transaction_max);
SCLogDebug("dns_state->transaction_max updated to %"PRIu64, dns_state->transaction_max);
TAILQ_INSERT_TAIL(&dns_state->tx_list, tx, next);
dns_state->curr = tx;
tx->tx_num = dns_state->transaction_max;

@ -141,7 +141,7 @@ typedef struct DNSTransaction_ {
typedef struct DNSState_ {
TAILQ_HEAD(, DNSTransaction_) tx_list; /**< transaction list */
DNSTransaction *curr; /**< ptr to current tx */
uint16_t transaction_max;
uint64_t transaction_max;
uint16_t events;
/* used by TCP only */

@ -580,11 +580,11 @@ void DNSStateUpdateTransactionId(void *state, uint16_t *id) {
DNSState *s = state;
SCLogDebug("original id %"PRIu16", s->transaction_max %"PRIu16,
SCLogDebug("original id %"PRIu16", s->transaction_max %"PRIu64,
*id, (s->transaction_max));
if ((s->transaction_max) > (*id)) {
SCLogDebug("original id %"PRIu16", updating with s->transaction_cnt %"PRIu16,
SCLogDebug("original id %"PRIu16", updating with s->transaction_max %"PRIu64,
*id, (s->transaction_max));
(*id) = (s->transaction_max);

@ -301,11 +301,11 @@ static void DNSStateUpdateTransactionId(void *state, uint16_t *id) {
DNSState *s = state;
SCLogDebug("original id %"PRIu16", s->transaction_max %"PRIu16,
SCLogDebug("original id %"PRIu16", s->transaction_max %"PRIu64,
*id, (s->transaction_max));
if ((s->transaction_max) > (*id)) {
SCLogDebug("original id %"PRIu16", updating with s->transaction_max %"PRIu16,
SCLogDebug("original id %"PRIu16", updating with s->transaction_max %"PRIu64,
*id, (s->transaction_max));
(*id) = (s->transaction_max);

Loading…
Cancel
Save