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 9dda3c7 commit 8e7d0d8Copy full SHA for 8e7d0d8
src/socket.rs
@@ -963,7 +963,7 @@ impl Socket {
963
#[cfg(all(feature = "all", target_os = "linux"))]
964
pub fn ip_transparent(&self) -> io::Result<bool> {
965
unsafe {
966
- getsockopt::<c_int>(self.inner, sys::IPPROTO_IP, libc::IP_TRANSPARENT)
+ getsockopt::<c_int>(self.as_raw(), sys::IPPROTO_IP, libc::IP_TRANSPARENT)
967
.map(|transparent| transparent != 0)
968
}
969
@@ -988,7 +988,7 @@ impl Socket {
988
pub fn set_ip_transparent(&self, transparent: bool) -> io::Result<()> {
989
990
setsockopt(
991
- self.inner,
+ self.as_raw(),
992
sys::IPPROTO_IP,
993
libc::IP_TRANSPARENT,
994
transparent as c_int,
0 commit comments