Skip to content

Add support for Netlink sockets#1079

Closed
ids1024 wants to merge 2 commits intobytecodealliance:mainfrom
ids1024:netlink
Closed

Add support for Netlink sockets#1079
ids1024 wants to merge 2 commits intobytecodealliance:mainfrom
ids1024:netlink

Conversation

@ids1024
Copy link
Copy Markdown
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.

ids1024 added 2 commits June 20, 2024 14:25
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
Copy Markdown
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.

@sunfishcode
Copy link
Copy Markdown
Member

Closing, as I believe #1004 now implements this, and removes the code where the size_of fix was 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.

2 participants