We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7905d commit f107310Copy full SHA for f107310
src/socket.rs
@@ -2043,7 +2043,7 @@ impl Socket {
2043
pub fn recv_hoplimit_v6(&self) -> io::Result<bool> {
2044
unsafe {
2045
getsockopt::<c_int>(self.as_raw(), sys::IPPROTO_IPV6, sys::IPV6_RECVHOPLIMIT)
2046
- .map(|recv_tclass| recv_tclass > 0)
+ .map(|recv_hoplimit| recv_hoplimit > 0)
2047
}
2048
2049
/// Set the value of the `IPV6_RECVHOPLIMIT` option for this socket.
0 commit comments