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

Add support for Netlink sockets #1079

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ids1024
Copy link
Contributor

@ids1024 ids1024 commented Jun 20, 2024

I noticed that msg_namelen is being set to the size of SocketAddr*, which seems to be incorrect. So I also added a commit changing that for the existing socket address types.

I wonder if some of the code here could be less redundant, but that isn't changed here.

The `SocketAddr*` types are documented to have a potentially different
representation from the C types. Presumably this should use the size of
the C type.
@ids1024
Copy link
Contributor Author

ids1024 commented Jun 20, 2024

Ah, I guess this (and making the socket code less redundant) is covered in #1004. I didn't really expect anyone else would have tried adding Netlink support recently.

Though I guess the size_of change is still needed.

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.

1 participant