Skip to content

Commit ba376e8

Browse files
committed
Add DontRoute SockOpt
1 parent c8ffe26 commit ba376e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ sockopt_impl!(
352352
sockopt_impl!(
353353
/// Get and clear the pending socket error.
354354
SocketError, GetOnly, libc::SOL_SOCKET, libc::SO_ERROR, i32);
355+
sockopt_impl!(
356+
/// Set or get the don't route flag.
357+
DontRoute, Both, libc::SOL_SOCKET, libc::SO_DONTROUTE, bool);
355358
sockopt_impl!(
356359
/// Enable sending of keep-alive messages on connection-oriented sockets.
357360
KeepAlive, Both, libc::SOL_SOCKET, libc::SO_KEEPALIVE, bool);

0 commit comments

Comments
 (0)