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
This commit is contained in:
parent
f2e0ae819e
commit
8db96730eb
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ fn configure_socket(socket: &mut TcpSocket, so_mark: &Option<i32>) -> Result<(),
|
|||
)
|
||||
})?;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
if let Some(so_mark) = so_mark {
|
||||
unsafe {
|
||||
let optval: libc::c_int = *so_mark;
|
||||
|
|
Loading…
Reference in a new issue