[ros-diffs] [fireball] 54643: [MSAFD] - Handle SO_SNDBUF in WSPSetSockOpt so that it doesn't fall through to wshtcpip and result in "unknown level: 65536". - Added more trace messages. See issue #5477 for more...

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Dec 12 22:31:09 UTC 2011


Author: fireball
Date: Mon Dec 12 22:31:09 2011
New Revision: 54643

URL: http://svn.reactos.org/svn/reactos?rev=54643&view=rev
Log:
[MSAFD]
- Handle SO_SNDBUF in WSPSetSockOpt so that it doesn't fall through to wshtcpip and result in "unknown level: 65536".
- Added more trace messages.
See issue #5477 for more details.

Modified:
    trunk/reactos/dll/win32/msafd/misc/dllmain.c

Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllmain.c?rev=54643&r1=54642&r2=54643&view=diff
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Mon Dec 12 22:31:09 2011
@@ -2203,7 +2203,19 @@
                             sizeof(struct linger));
               return 0;
 
+           case SO_SNDBUF:
+              if (optlen < sizeof(DWORD))
+              {
+                  *lpErrno = WSAEFAULT;
+                  return SOCKET_ERROR;
+              }
+
+              /* TODO: The total per-socket buffer space reserved for sends */
+              AFD_DbgPrint(MIN_TRACE,("Setting send buf to %x is not implemented yet\n", optval));
+              return 0;
+
            default:
+              AFD_DbgPrint(MIN_TRACE,("Unknown optname %x\n", optname));
               break;
         }
     }




More information about the Ros-diffs mailing list