-
Notifications
You must be signed in to change notification settings - Fork 682
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
Make fields in UnknownCmsg public #2520
Conversation
Hi, thanks for the PR!
You mean the socket option? If so, it has already been supported by Nix in #1772, the option type is named Ipv4OrigDstAddr, I think it is more like a BSD style naming:
Linux man page uses |
I found out shortly after I opened this pull request. |
Make sense, left a comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
What does this PR do
Made fields in
nix::sys::socket::UnknownCmsg
public.This change will allow user to implement custom parsing for unsupported message, such as
SOL_IP, IP_RECVORIGDSTADDR
.Checklist:
CONTRIBUTING.md