Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing DontRoute SockOpt #1752

Merged
merged 2 commits into from
Jul 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add DontRoute SockOpt
  • Loading branch information
leoleoasd committed Jul 10, 2022
commit ba376e8577fd9b441ca1e6028f03c928f1045dd5
3 changes: 3 additions & 0 deletions src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
@@ -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);