From 8db96730ebe78f8b8333c703305cfad1e1df0715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Sun, 15 Oct 2023 20:27:23 +0200 Subject: [PATCH] SoMark only for linux Former-commit-id: 5d96d3aae6886a33795b15c2c248c0e051ca7ae2 [formerly fada6ed39aca9f0c3d5192fb2c8ef33a9630b4d3] [formerly 602999886b9bf9a50de1afdf127e9641afd7c5fa [formerly 2ee8fed454fe01d73ccd6fad4cb39e4527c3f703]] Former-commit-id: 4146e5918de2e3ab1fbdaa4fd6d5bd663a87ca6b [formerly f61ee6635d76da6f16f6d3613b278f92cbf540f8] Former-commit-id: dc89243b08551499570de59d9639e56cd9bf0820 Former-commit-id: 5c6c004ceede9fbd6ea94f3dde62275a588657d8 Former-commit-id: 228a9d6c9e12dfbde5c1477bc40ad47b2aa2d8ae Former-commit-id: dcc0318d81ea64e2ac5b4c8a4dc7f68d1bc63cc1 [formerly d43e7d816a83b5e73929fabfa2ca59da4b61b09f] Former-commit-id: f4ee4c9dd9e9a719e9a30eee5ea7498a7d6632b6 --- src/tcp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tcp.rs b/src/tcp.rs index f7884c0..b248a23 100644 --- a/src/tcp.rs +++ b/src/tcp.rs @@ -19,6 +19,7 @@ fn configure_socket(socket: &mut TcpSocket, so_mark: &Option) -> Result<(), ) })?; + #[cfg(target_os = "linux")] if let Some(so_mark) = so_mark { unsafe { let optval: libc::c_int = *so_mark;