-
Notifications
You must be signed in to change notification settings - Fork 683
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
Set IPv6 hop limit for multicast traffic in sendmsg
#2075
Comments
Are you saying that sending this control message seems to have different effects in Python vs in Rust with Nix? We need to figure out why before we can merge this. Have you tried running both the Python and Rust programs under gdb and examining the cmsg ? That may reveal more detail than strace. |
Alright thanks for the suggestion with |
Hey @asomers , I took another look at the issue. Short story: The behavior is the same between Rust and Python. When I tested before, I just tested on different interfaces with Rust vs Python and they behaved differently. On one of my interfaces, setting the hop limit parameter to Nevertheless, since you suggested it and to be sure, I looked at what is passed to |
So now that the Rust-vs-Python issue is resolved, is there anything else to this issue that isn't resolved by #2074? |
No, everything should be fine now 👍 I updated #2074 with the changes you requested. |
I tried a long time setting the hop limit for IPv6 multicast traffic sent with
sendmsg
until I read in a StackOverflow post that for IPv6 multicast andsendmsg
, the hop limit has to be set with a control message.For this, I created #2074 , which works on Linux. However, the is one slight difference to what is written in the man pages: When we pass the value
-1
, the hop limit is not set to the route default (64
on most machines including mine, see ``) but set to1.
Any idea what could cause this in `nix`?Here is an example binary to test the hop limit:
We can observe the hop limit as
hlim
intcpdump
:Would this be worth merging even if
-1
does not lead to the route default? Or any suggestions what could be different? With Python,-1
as hop limit leads to the route default, however the cmsg info instrace
already looks the same, below the example from Rust:The text was updated successfully, but these errors were encountered: