[Bug 817] New: conntrack reports incorrect timestamps when microseconds are less than 100000

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu May 9 20:41:50 CEST 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=817

           Summary: conntrack reports incorrect timestamps when
                    microseconds are less than 100000
           Product: conntrack-tools
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: conntrack
        AssignedTo: netfilter-buglog at lists.netfilter.org
        ReportedBy: hoffman at stanford.edu
   Estimated Hours: 0.0


Created attachment 394
  --> https://bugzilla.netfilter.org/attachment.cgi?id=394
Patch to correct timestamp format of conntrack

The fractional portion of timestamps reported by conntrack is printed as a
left-justified integer instead of fixed-width and zero-padded.  When the number
of microseconds is less than six digits, this makes it incorrect (and sometimes
non-monotonic) when read as a straight decimal number.

Example of actual results:

May  5 23:45:05 natbox2 logger: [1367822705.769455]#011[DESTROY] ...
May  5 23:45:06 natbox2 logger: [1367822706.41462 ]#011[DESTROY] ...
May  5 23:45:06 natbox2 logger: [1367822706.143201]#011    [NEW] ...

Expected results:
May  5 23:45:05 natbox2 logger: [1367822705.769455]#011[DESTROY] ...
May  5 23:45:06 natbox2 logger: [1367822706.041462]#011[DESTROY] ...
May  5 23:45:06 natbox2 logger: [1367822706.143201]#011    [NEW] ...

Patch attached.

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list