Project

General

Profile

Actions

Bug #6585

closed
SD SD

src: SCTIME_FROM_TIMESPEC() creates incorrect timestamps

Bug #6585: src: SCTIME_FROM_TIMESPEC() creates incorrect timestamps

Added by Stephen Donnelly over 2 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
low
Difficulty:
low
Label:
Beginner, C

Description

The macro SCTIME_FROM_TIMESPEC(ts) converts nanoseconds to microseconds by multiplying by 1000, when it should divide by 1000.

This will produce garbage SCtime_t values in the microsecond part, which may affect flow tracking behaviour and reporting as it is used to set f->startts.


Subtasks 1 (0 open1 closed)

Bug #6595: SCTIME_FROM_TIMESPEC() creates incorrect timestamps (7.0.x backport)ClosedJeff LucovskyActions

Related issues 1 (0 open1 closed)

Related to Suricata - Bug #6584: src: SCTIME_ADD_SECS() macro zeros out ts.usec partClosedStephen DonnellyActions

SD Updated by Stephen Donnelly over 2 years ago Actions #1

  • Subject changed from SCTIME_FROM_TIMEVAL() creates incorrect timestamps to SCTIME_FROM_TIMESPEC() creates incorrect timestamps

VJ Updated by Victor Julien over 2 years ago Actions #2

  • Target version changed from TBD to 7.0.3

VJ Updated by Victor Julien over 2 years ago Actions #3

  • Related to Bug #6584: src: SCTIME_ADD_SECS() macro zeros out ts.usec part added

VJ Updated by Victor Julien over 2 years ago Actions #4

  • Target version changed from 7.0.3 to 8.0.0-beta1

OT Updated by OISF Ticketbot over 2 years ago Actions #5

  • Subtask #6595 added

OT Updated by OISF Ticketbot over 2 years ago Actions #6

  • Label deleted (Needs backport to 7.0)

JL Updated by Jeff Lucovsky over 2 years ago Actions #7

  • Status changed from New to Resolved
  • Assignee changed from OISF Dev to Stephen Donnelly

JL Updated by Jeff Lucovsky about 2 years ago Actions #8

  • Status changed from Resolved to Closed

VJ Updated by Victor Julien 12 months ago Actions #9

  • Subject changed from SCTIME_FROM_TIMESPEC() creates incorrect timestamps to src: SCTIME_FROM_TIMESPEC() creates incorrect timestamps
Actions

Also available in: PDF Atom