sosend( ) will not process mbuf if you pass it a uio (according to arty)
authorRoyce Mitchell III <royce3@ev1.net>
Mon, 20 Sep 2004 04:13:46 +0000 (04:13 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Mon, 20 Sep 2004 04:13:46 +0000 (04:13 +0000)
svn path=/trunk/; revision=10925

reactos/drivers/lib/oskittcp/oskittcp/interface.c

index 03da96d..21af3a3 100644 (file)
@@ -250,16 +250,16 @@ int OskitTCPClose( void *socket ) {
 int OskitTCPSend( void *socket, OSK_PCHAR Data, OSK_UINT Len, 
                  OSK_UINT *OutLen, OSK_UINT flags ) {
     struct mbuf mb;
-    struct uio uio = { 0 };
+    /*struct uio uio = { 0 };*/
     int error = 0;
     OskitDumpBuffer( Data, Len );
-    uio.uio_resid = Len;
+    /*uio.uio_resid = Len;*/
     mb.m_data = Data;
     mb.m_len  = Len;
     mb.m_flags = M_EOR;
-    error = sosend( socket, NULL, &uio, (struct mbuf *)&mb, NULL, 0 );
-    printf("uio.uio_resid = %d\n", uio.uio_resid);
-    *OutLen = uio.uio_resid;
+    error = sosend( socket, NULL, NULL /*&uio*/, (struct mbuf *)&mb, NULL, 0 );
+    /*printf("uio.uio_resid = %d\n", uio.uio_resid);*/
+    *OutLen = Len /*uio.uio_resid*/;
     return error;
 }