We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b73217 commit 9de11adCopy full SHA for 9de11ad
1 file changed
host/src/lib.rs
@@ -1104,7 +1104,10 @@ fn register_net_tools(tools: &mut ToolRegistry) {
1104
let optname = args["optname"].as_i64().unwrap_or(0) as i32;
1105
let tbl = t.lock().unwrap();
1106
let sock = tbl.get_socket(fd)?;
1107
- let val: i32 = if level == 1 && optname == 2 {
+ let val: i32 = if level == 1 && optname == 3 {
1108
+ // SOL_SOCKET + SO_TYPE — all our sockets are SOCK_STREAM
1109
+ 1
1110
+ } else if level == 1 && optname == 2 {
1111
sock.reuse_address()? as i32
1112
} else if level == 6 && optname == 1 {
1113
sock.nodelay()? as i32
0 commit comments