Skip to content
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

Fix UDP report issue for 32bits CPUs #1556

Merged

Conversation

davidBar-On
Copy link
Contributor

  • Version of iperf3 (or development branch, such as master or
    3.1-STABLE) to which this pull request applies:
    master

  • Issues fixed (if any):

  • Output of sender's statistic damaged on Linux i586 #1554

  • Brief description of code changes (suitable for use as a commit message):
    PR Prevent UDP packet count and operations overflow #1536 that changed packet count related variables from int to int64_t was not complete for 32 bits CPUs, as there are two cases where 0 is passed as UDP packet count for printing. In 32 bits CPU the 0 is passed as 32 bits instead of 64. This PR fixes the issue (by casting the 0 to int64_t).

@davidBar-On davidBar-On changed the title Fix #1554 - pass 0 in UDP output as int64_t for 32bits CPUs Fix report issue for 32bits CPUs Aug 2, 2023
@davidBar-On
Copy link
Contributor Author

@bmah888, note that the issue fixed by this PR affects all iperf3 3.14 users that run UDP tests on 32 bits machines.

@davidBar-On davidBar-On changed the title Fix report issue for 32bits CPUs Fix UDP report issue for 32bits CPUs Aug 10, 2023
@bmah888
Copy link
Contributor

bmah888 commented Aug 10, 2023

Thanks for the PR! We're working some other stuff at the moment but I'm going to try to get this merged soon-ish.

@bmah888 bmah888 added the bug label Aug 10, 2023
@bmah888 bmah888 self-assigned this Aug 11, 2023
Copy link
Contributor

@bmah888 bmah888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works good, let's get this merged.

@bmah888 bmah888 merged commit e3bdb5e into esnet:master Aug 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants