-
Notifications
You must be signed in to change notification settings - Fork 667
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
Ipv4RecvDstAddr recvmsg stuff disabled on Linux #1767
Comments
How have you determined that "These are valid on Linux"? They aren't defined by the libc crate. If they really are defined on Linux, you should submit a PR to https://github.com/rust-lang/libc to add them there. Then you can submit a PR to Nix to enable them. |
I use these functions in code I am porting from Python. Like I said, these are required to get TPROXY support working, which I believe is a Linux only thing. Not sure I understand what needs to change in libc, it already has constants such as IP_RECVDSTADDR defined for all platforms. |
Yuck, I find this so confusing. Linux might have a slightly different API that looks very similar:
So, yes, I think this is defined already in libc... But I might have got the name wrong. In the python code I use
|
It looks like definitions needed to find the real IP destination of a TPROXY redirected stream are disabled on Linux. Such as:
And the equivalent IPv6 versions.
https://powerdns.org/tproxydoc/tproxy.md.html
These are valid on Linux and should be enabled.
e.g. the code has:
I believe this explains why I cannot use the on Linux.
The text was updated successfully, but these errors were encountered: