Skip to content

Commit

Permalink
Release v0.5.8 (rust-lang#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw authored and andreybuchinskiy committed Dec 2, 2024
1 parent 74fd9f4 commit 4d52d06
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 42 deletions.
31 changes: 17 additions & 14 deletions src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2024,20 +2024,23 @@ impl Socket {
/// The received hop limit is returned as ancillary data by recvmsg()
/// only if the application has enabled the IPV6_RECVHOPLIMIT socket
/// option:
#[cfg(not(any(
windows,
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
target_os = "haiku",
target_os = "hurd",
target_os = "espidf",
target_os = "vita",
)))]
#[cfg(all(
feature = "all",
not(any(
windows,
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
target_os = "haiku",
target_os = "hurd",
target_os = "espidf",
target_os = "vita",
))
))]
pub fn set_recv_hoplimit_v6(&self, recv_hoplimit: bool) -> io::Result<()> {
unsafe {
setsockopt(
Expand Down
42 changes: 14 additions & 28 deletions src/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,34 +122,6 @@ pub(crate) use libc::SO_OOBINLINE;
// Used in `Socket`.
#[cfg(not(target_os = "nto"))]
pub(crate) use libc::ipv6_mreq as Ipv6Mreq;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "hurd",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
target_os = "haiku",
target_os = "espidf",
target_os = "vita",
)))]
pub(crate) use libc::IPV6_RECVHOPLIMIT;
#[cfg(not(any(
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "hurd",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
target_os = "haiku",
target_os = "espidf",
target_os = "vita",
)))]
pub(crate) use libc::IPV6_RECVTCLASS;
#[cfg(all(feature = "all", not(any(target_os = "redox", target_os = "espidf"))))]
pub(crate) use libc::IP_HDRINCL;
#[cfg(not(any(
Expand Down Expand Up @@ -249,6 +221,20 @@ pub(crate) use libc::{IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP};
pub(crate) use libc::{
IPV6_JOIN_GROUP as IPV6_ADD_MEMBERSHIP, IPV6_LEAVE_GROUP as IPV6_DROP_MEMBERSHIP,
};
#[cfg(not(any(
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "hurd",
target_os = "illumos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "redox",
target_os = "solaris",
target_os = "haiku",
target_os = "espidf",
target_os = "vita",
)))]
pub(crate) use libc::{IPV6_RECVHOPLIMIT, IPV6_RECVTCLASS};
#[cfg(all(
feature = "all",
any(
Expand Down

0 comments on commit 4d52d06

Please sign in to comment.