Open ids1024 opened 4 weeks ago
Ah, I guess this (and making the socket code less redundant) is covered in https://github.com/bytecodealliance/rustix/pull/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.
I noticed that
msg_namelen
is being set to the size ofSocketAddr*
, 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.