Commit 5591c969 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

ws2_32: Silently ignore WS_IP_DONTFRAGMENT.

parent 58639cc8
...@@ -1924,6 +1924,10 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, ...@@ -1924,6 +1924,10 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
} }
release_sock_fd( s, fd ); release_sock_fd( s, fd );
return ret; return ret;
case WS_IP_DONTFRAGMENT:
FIXME("WS_IP_DONTFRAGMENT is always false!\n");
*(BOOL*)optval = FALSE;
return 0;
} }
FIXME("Unknown IPPROTO_IP optname 0x%08x\n", optname); FIXME("Unknown IPPROTO_IP optname 0x%08x\n", optname);
return SOCKET_ERROR; return SOCKET_ERROR;
...@@ -3008,6 +3012,9 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname, ...@@ -3008,6 +3012,9 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
case WS_IP_TTL: case WS_IP_TTL:
convert_sockopt(&level, &optname); convert_sockopt(&level, &optname);
break; break;
case WS_IP_DONTFRAGMENT:
FIXME("IP_DONTFRAGMENT is silently ignored!\n");
return 0;
default: default:
FIXME("Unknown IPPROTO_IP optname 0x%08x\n", optname); FIXME("Unknown IPPROTO_IP optname 0x%08x\n", optname);
return SOCKET_ERROR; return SOCKET_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment