Project

General

Profile

Actions

Bug #4206

closed

dns: output flags not set correctly on 32 bit systems

Added by Jason Ish about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 5.0, Needs backport to 6.0

Description

The flags variable is a uint64_t and was being set to all bits on with:

    dnslog_ctx->flags = ~0UL;

while this sets all 64 bits on a 64 bit system, it only sets 32 on a 32 bit system.

A work-around is to make sure the "dns" in the eve config has a trailing ":". For example:

types:
  - dns:

This turns the value into an object which causes for initialization to be done result in correct initialization.


Related issues 2 (0 open2 closed)

Copied to Suricata - Bug #4305: dns: output flags not set correctly on 32 bit systemsClosedJeff LucovskyActions
Copied to Suricata - Bug #4306: dns: output flags not set correctly on 32 bit systemsClosedShivani BhardwajActions
Actions #1

Updated by Victor Julien about 4 years ago

  • Status changed from Assigned to Closed
  • Target version set to 7.0.0-beta1
  • Label Needs backport to 5.0, Needs backport to 6.0 added
Actions #2

Updated by Jeff Lucovsky almost 4 years ago

  • Copied to Bug #4305: dns: output flags not set correctly on 32 bit systems added
Actions #3

Updated by Jeff Lucovsky almost 4 years ago

  • Copied to Bug #4306: dns: output flags not set correctly on 32 bit systems added
Actions

Also available in: Atom PDF