We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c1f3b0 commit d35ef30Copy full SHA for d35ef30
src/socket.rs
@@ -1674,6 +1674,9 @@ impl Socket {
1674
setsockopt(
1675
self.as_raw(),
1676
sys::IPPROTO_IPV6,
1677
+ #[cfg(target_os = "linux")]
1678
+ sys::IPV6_HDRINCL,
1679
+ #[cfg(not(target_os = "linux"))]
1680
sys::IP_HDRINCL,
1681
included as c_int,
1682
)
src/sys/unix.rs
@@ -124,6 +124,8 @@ pub(crate) use libc::SO_OOBINLINE;
124
// Used in `Socket`.
125
#[cfg(not(target_os = "nto"))]
126
pub(crate) use libc::ipv6_mreq as Ipv6Mreq;
127
+#[cfg(all(feature = "all", target_os = "linux"))]
128
+pub(crate) use libc::IPV6_HDRINCL;
129
#[cfg(all(
130
feature = "all",
131
not(any(
0 commit comments