Repository navigation
Add methods to TCP and UDP sockets to modify hop limit - #138744
Conversation
|
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
|
r? libs-api because it's been a while since the original PR was approved. |
This comment has been minimized.
This comment has been minimized.
7f790e2 to
9c1ee90
Compare
|
☔ The latest upstream changes (presumably #139724) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Sorry—I missed that this was ready for review again. Please use |
9c1ee90 to
25fb525
Compare
|
@rustbot ready |
|
Thank you! @bors r+ |
…=dtolnay Add methods to TCP and UDP sockets to modify hop limit (refresh of rust-lang#94678) rust-lang#94678 was closed because of time constraints of the original author (`@kckeiks).` This PR is a refresh of rust-lang#94678 where the original proposed changes are ported to the current status of the standard library. In addition, this PR: - implements the change suggested in rust-lang#94678 (comment) - defines `set_multicast_hop_limit_v6` and `multicast_hop_limit_v6 ` only for UDP sockets and not for TCP sockets as originally proposed Issue: rust-lang#139166
|
@bors try jobs=various |
This comment has been minimized.
This comment has been minimized.
Add methods to TCP and UDP sockets to modify hop limit (refresh of #94678) try-job: *various*
This comment has been minimized.
This comment has been minimized.
|
💔 Test for b4e082d failed: CI. Failed jobs:
|
|
@bors squash |
This comment has been minimized.
This comment has been minimized.
…st-lang#94678) * Add methods to TCP and UDP sockets to modify hop limit * Use IPv6 addresses in hop_limit_v6 docs * Update tracking issue to 139166 * Update docs according to PR review * Fix unused_variables * fix: add cfg guards on unsupported wasi p2 and p3 targets * fix: tidy PAL and unsafe blocks CI failure * fix: tidy CI * fix: port tests to new TCP testing framework * Trigger CI * Fix TCP hop limit doctest indentation * Use cfg_select for socket hop limit methods * fix: UEFI IPv6 hop-limit stubs return unsupported Co-authored-by: David Tolnay <dtolnay@gmail.com> Co-authored-by: Luca Cominardi <luca.cominardi@datadoghq.com>
|
🔨 13 commits were squashed into 52b5c71. |
eb18e7e to
52b5c71
Compare
|
|
@bors r+ |
…=jhpratt Add methods to TCP and UDP sockets to modify hop limit rust-lang#94678 was closed because of time constraints of the original author (@kckeiks). This PR is a refresh of rust-lang#94678 where the original proposed changes are ported to the current status of the standard library. In addition, this PR: - implements the change suggested in rust-lang#94678 (comment) - defines `set_multicast_hop_limit_v6` and `multicast_hop_limit_v6 ` only for UDP sockets and not for TCP sockets as originally proposed Issue: rust-lang#139166
Rollup of 10 pull requests Successful merges: - #161698 (Fix rmeta-link metadata not being read on AIX) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
Rollup of 10 pull requests Successful merges: - #161698 (Fix rmeta-link metadata not being read on AIX) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
…=jhpratt Add methods to TCP and UDP sockets to modify hop limit rust-lang#94678 was closed because of time constraints of the original author (@kckeiks). This PR is a refresh of rust-lang#94678 where the original proposed changes are ported to the current status of the standard library. In addition, this PR: - implements the change suggested in rust-lang#94678 (comment) - defines `set_multicast_hop_limit_v6` and `multicast_hop_limit_v6 ` only for UDP sockets and not for TCP sockets as originally proposed Issue: rust-lang#139166
…uwer Rollup of 11 pull requests Successful merges: - #162809 (Remap local def ids for deterministic metadata encoding) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164259 (std: make SOLID `sockaddr_storage` large enough for IPv6) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
View all comments
#94678 was closed because of time constraints of the original author (@kckeiks).
This PR is a refresh of #94678 where the original proposed changes are ported to the current status of the standard library.
In addition, this PR:
set_multicast_hop_limit_v6andmulticast_hop_limit_v6only for UDP sockets and not for TCP sockets as originally proposedIssue: #139166