-
Notifications
You must be signed in to change notification settings - Fork 666
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
Add IP_TTL/IPV6_UNICAST_HOPS SockOpts #1515
Conversation
0ac77d1
to
f1e204a
Compare
(Oops, initial version of the test was not |
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.
Is there anything you can do to test that the sockopts actually work?
Like, unit tests, or have I verified it works? For unit tests, I'm not sure we can (or want to) rely on any particular internet host, and I don't know of any good way to simulate it. Manually, yes, I've written a little traceroute program (using this new TTL functionality) and it works:
I observe, e.g., ICMP "Time Exceeded - TTL expired in transit" errors from hops 1-7 and "Unreachable - Port unreachable" from hop 8. All of the UDP packets are sent to the destination (8.8.8.8), but the ICMP responses from all other addresses in the path are due to TTL expiration. |
Test: `cargo test --test test test_ttl_opts`
f1e204a
to
1ce595f
Compare
(Rebased over #1516, no changes.) |
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.
bors r+
Thanks! |
Test:
cargo test --test test test_ttl_opts