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 connect message use network endian #1564

Closed
wants to merge 1 commit into from

Conversation

yihuanZhang
Copy link

base-commit:e3bdb5e27e03cf048ae584380448b358053fa2ca

when server and client run different endian machine in udp mode, then unable to read from stream socket return.
run client with -d, will get Connect received for Socket 23, sz=4, buf=36373839, i=0, max_len_wait_for_reply=4.
macro is in file iperf.h like #define UDP_CONNECT_REPLY 0x39383736.
different endian cause iperf_udp_connect return error.

Signed-off-by: yihuan.zhang <798528790@qq.com>
@bmah888
Copy link
Contributor

bmah888 commented Dec 7, 2023

Thanks for the PR! I chose to adopt a slightly different solution in PR #1468.

@bmah888 bmah888 closed this 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

Successfully merging this pull request may close these issues.

2 participants