summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeo Lu <luyuxuanleo@gmail.com>2022-06-28 20:32:55 +0800
committerLeo Lu <luyuxuanleo@gmail.com>2022-07-11 06:45:34 +0800
commitba376e8577fd9b441ca1e6028f03c928f1045dd5 (patch)
tree9ff145c1f124b14b1eaad3657a5c175a6d64aa30 /src
parentc8ffe269556e36e742e0b90daa8a9fddf84328bd (diff)
downloadnix-ba376e8577fd9b441ca1e6028f03c928f1045dd5.zip
Add DontRoute SockOpt
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket/sockopt.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs
index 33c86cd2..8f85748f 100644
--- a/src/sys/socket/sockopt.rs
+++ b/src/sys/socket/sockopt.rs
@@ -353,6 +353,9 @@ sockopt_impl!(
/// Get and clear the pending socket error.
SocketError, GetOnly, libc::SOL_SOCKET, libc::SO_ERROR, i32);
sockopt_impl!(
+ /// Set or get the don't route flag.
+ DontRoute, Both, libc::SOL_SOCKET, libc::SO_DONTROUTE, bool);
+sockopt_impl!(
/// Enable sending of keep-alive messages on connection-oriented sockets.
KeepAlive, Both, libc::SOL_SOCKET, libc::SO_KEEPALIVE, bool);
#[cfg(any(