diff --git a/Cargo.toml b/Cargo.toml index 9603e8d..df836ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,19 +13,19 @@ members = [ ] [workspace.package] -version = "0.19.0" +version = "0.19.1" edition = "2021" authors = ["shellrow "] [workspace.dependencies] -nex-core = { version = "0.19.0", path = "nex-core" } -nex-datalink = { version = "0.19.0", path = "nex-datalink" } -nex-macro = { version = "0.19.0", path = "nex-macro" } -nex-macro-helper = { version = "0.19.0", path = "nex-macro-helper" } -nex-packet = { version = "0.19.0", path = "nex-packet" } -nex-packet-builder = { version = "0.19.0", path = "nex-packet-builder" } -nex-socket = { version = "0.19.0", path = "nex-socket" } -nex-sys = { version = "0.19.0", path = "nex-sys" } +nex-core = { version = "0.19.1", path = "nex-core" } +nex-datalink = { version = "0.19.1", path = "nex-datalink" } +nex-macro = { version = "0.19.1", path = "nex-macro" } +nex-macro-helper = { version = "0.19.1", path = "nex-macro-helper" } +nex-packet = { version = "0.19.1", path = "nex-packet" } +nex-packet-builder = { version = "0.19.1", path = "nex-packet-builder" } +nex-socket = { version = "0.19.1", path = "nex-socket" } +nex-sys = { version = "0.19.1", path = "nex-sys" } serde = { version = "1" } libc = "0.2" rand = "0.8" diff --git a/nex-socket/src/socket/async_impl.rs b/nex-socket/src/socket/async_impl.rs index b7a3e41..a16bae8 100644 --- a/nex-socket/src/socket/async_impl.rs +++ b/nex-socket/src/socket/async_impl.rs @@ -531,12 +531,12 @@ impl AsyncSocket { } /// Get the value of the IP_HDRINCL option on this socket. pub async fn is_ip_header_included(&self) -> io::Result { - self.inner.read_with(|inner| inner.header_included()).await + self.inner.read_with(|inner| inner.header_included_v4()).await } /// Set the value of the `IP_HDRINCL` option on this socket. pub async fn set_ip_header_included(&self, include: bool) -> io::Result<()> { self.inner - .write_with(|inner| inner.set_header_included(include)) + .write_with(|inner| inner.set_header_included_v4(include)) .await } /// Get the value of the TCP_NODELAY option on this socket. diff --git a/nex-socket/src/socket/sync_impl.rs b/nex-socket/src/socket/sync_impl.rs index 7173090..90b0a9f 100644 --- a/nex-socket/src/socket/sync_impl.rs +++ b/nex-socket/src/socket/sync_impl.rs @@ -337,11 +337,11 @@ impl Socket { } /// Get the value of the IP_HDRINCL option on this socket. pub fn is_ip_header_included(&self) -> io::Result { - self.inner.header_included() + self.inner.header_included_v4() } /// Set the value of the `IP_HDRINCL` option on this socket. pub fn set_ip_header_included(&self, include: bool) -> io::Result<()> { - self.inner.set_header_included(include) + self.inner.set_header_included_v4(include) } /// Get the value of the TCP_NODELAY option on this socket. pub fn nodelay(&self) -> io::Result {