Skip to content

Commit

Permalink
Add DontRoute SockOpt
Browse files Browse the repository at this point in the history
  • Loading branch information
leoleoasd committed Jun 28, 2022
1 parent 0922fd9 commit 6e4299e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ sockopt_impl!(
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);
Expand Down

0 comments on commit 6e4299e

Please sign in to comment.