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 endian type of udp connect / reply messages #1468

Merged
merged 1 commit into from
Dec 6, 2023

Commits on Feb 7, 2023

  1. fix endian type of udp connect / reply messages

    for example. if you run a iperf3 server on a little endian host, but
    client is bug endian it will result in the following error if you try to
    start a udp bandwidth test
    
    Connect received for Socket 5, sz=4, buf=36373839, i=0, max_len_wait_for_reply=4
    iperf3: error - unable to read from stream socket: Invalid argument
    
    the reason that that all messages are reversed. fix this by swapping the
    message values to little endian host order on big endian systems
    
    Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
    BrainSlayer committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    9caff37 View commit details
    Browse the repository at this point in the history