-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] regression with nanosecond timestamps #863
Labels
Comments
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
Add macros that can properly convert between PCAP timestamps and timespec/timeval. We still use pcap_open_offline() for tcprewrite.c, otherwise tests fail because timestamps get written inconsistently across libpcap versions. Also fix multiplier calculation error.
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
Add macros that can properly convert between PCAP timestamps and timespec/timeval. We still use pcap_open_offline() for tcprewrite.c, otherwise tests fail because timestamps get written inconsistently across libpcap versions. Also fix multiplier calculation error.
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 2, 2024
fklassen
added a commit
that referenced
this issue
Jun 3, 2024
Also fix intermittent test failure in TOS test. It seems there is a memory alignment issue.
fklassen
added a commit
that referenced
this issue
Jun 3, 2024
Add macros that can properly convert between PCAP timestamps and timespec/timeval. We still use pcap_open_offline() for tcprewrite.c, otherwise tests fail because timestamps get written inconsistently across libpcap versions. Also fix multiplier calculation error.
fixed in PR #865 |
TheSableCZ
pushed a commit
to CESNET/FlowTest
that referenced
this issue
Sep 10, 2024
Recently new version of tcpreplay was released[1]. This version now uses nanosecond timestamp precision[2][3] instead of microsecond precision. However, function datetime.datetime.fromisoformat() in Python up to 3.10 doesn't accept this format and fails with following error: tools/ft-orchestration/src/generator/tcpreplay.py:262: in stats start_time = datetime.datetime.fromisoformat(start_time) E ValueError: Invalid isoformat string: '1970-01-01 01:16:52.837054314' This commit fixes the issue by cropping nanosecond precision back to microsecond precision. Another solution would be to upgrade to Python 3.11, where fromisoformat() accepts nanosecond precision (even though it internally crops it back to microseconds). [1] https://github.com/appneta/tcpreplay/releases/tag/v4.5.1 [2] appneta/tcpreplay#796 [3] appneta/tcpreplay#863
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature #796 introduced a feature that is not supported by older versions of `libpcap. Need to detect and support older versions.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect build to work, and that timestamps are properly handled throught the system.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: