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

Udp connection failed due to the out of bytes order when the server and the client run on different ENDIAN CPUs #1584

Closed
RayWindRiver opened this issue Oct 19, 2023 · 2 comments

Comments

@RayWindRiver
Copy link
Contributor

NOTE: The iperf3 issue tracker is for registering bugs, enhancement
requests, or submissions of code. It is not a means for asking
questions about building or using iperf3. Those are best directed
towards the Discussions section for this project at
https://github.com/esnet/iperf/discussions
or to the iperf3 mailing list at iperf-dev@googlegroups.com.
A list of frequently-asked questions
regarding iperf3 can be found at http://software.es.net/iperf/faq.html.

Context

  • Version of iperf3:
    3.14

  • Hardware:
    Client: PowerPC
    Server: IA

  • Operating system (and distribution, if any):
    Client: VxWorks
    Server: Linux
    Please note: iperf3 is supported on Linux, FreeBSD, and macOS.
    Support may be provided on a best-effort basis to other UNIX-like
    platforms. We cannot provide support for building and/or running
    iperf3 on Windows, iOS, or Android.

  • Other relevant information (for example, non-default compilers,
    libraries, cross-compiling, etc.):

Please fill out one of the "Bug Report" or "Enhancement Request"
sections, as appropriate. Note that submissions of bug fixes, new
features, etc. should be done as a pull request at
https://github.com/esnet/iperf/pulls

Bug Report

  • Expected Behavior
    When the server replies the client with "0x39383736", the client receives data "0x39383736".

  • Actual Behavior
    When the server replies the client with "0x39383736", the client receives data "0x36373839".

  • Steps to Reproduce

  • Possible Solution
    Iperf_udp.c iperf_udp_connect: udpate "unsigned int buf" to "char buf [4]"
    Iperf_udp.c iperf_udp_accept: udpate "unsigned int buf" to "char buf [4]"

Enhancement Request

  • Current behavior

  • Desired behavior

  • Implementation notes

@RayWindRiver
Copy link
Contributor Author

This issue is same as #1467

@bmah888
Copy link
Contributor

bmah888 commented Dec 7, 2023

Fixed in PR #1468.

@bmah888 bmah888 closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants