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

xdp-trafficgen: Cast argument to getsockname() to struct sockaddr #350

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Aug 7, 2023

The must C library doesn't have the fancy union define that glibc has for
the various sockaddr structs, so it barfs on the use of a sockaddr_in6 as
an argument to getsockname(). Add an explicit cast to avoid the error.

Fixes #346

The must C library doesn't have the fancy union define that glibc has for
the various sockaddr structs, so it barfs on the use of a sockaddr_in6 as
an argument to getsockname(). Add an explicit cast to avoid the error.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
@tohojo tohojo merged commit eccba7e into master Sep 21, 2023
@tohojo tohojo deleted the musl-compat branch September 21, 2023 20:35
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.

xdp-trafficgen fails to build against musl libc
1 participant