Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-20 Thread Erich Hoover
On Mon, Oct 18, 2010 at 8:58 PM, Mike Kaplinskiy wrote: > On Sun, Oct 17, 2010 at 5:51 PM, Erich Hoover wrote: >> ... >> That's why in the original version I had those parameters split out; >> however, I realized that since the length parameter gets modified by >> WSARecvMsg that it is impossible

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-18 Thread Mike Kaplinskiy
On Sun, Oct 17, 2010 at 5:51 PM, Erich Hoover wrote: > On Sat, Oct 16, 2010 at 1:41 PM, Mike Kaplinskiy > wrote: >> On Thu, Oct 14, 2010 at 10:08 PM, Erich Hoover wrote: >>> ... >>>     DWORD                               flags; >>>     unsigned int                        n_iovecs; >>>     unsig

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-17 Thread Erich Hoover
On Sat, Oct 16, 2010 at 1:41 PM, Mike Kaplinskiy wrote: > On Thu, Oct 14, 2010 at 10:08 PM, Erich Hoover wrote: >> ... >>     DWORD                               flags; >>     unsigned int                        n_iovecs; >>     unsigned int                        first_iovec; >>+    WSABUF      

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-16 Thread Mike Kaplinskiy
On Thu, Oct 14, 2010 at 10:08 PM, Erich Hoover wrote: > If you guys would mind looking over this revised patchset I would > greatly appreciate it, I believe I've appropriately included your > corrections.  Please note that mswsock.h and ws2ipdef.h will be > submitted as separate patches.  Thanks i

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-14 Thread Erich Hoover
If you guys would mind looking over this revised patchset I would greatly appreciate it, I believe I've appropriately included your corrections. Please note that mswsock.h and ws2ipdef.h will be submitted as separate patches. Thanks in advance! Erich Hoover ehoo...@mines.edu diff --git a/dlls/ws

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-14 Thread Rolf Kalbermatter
On Tue, Oct 13, 2010 at 16:30 PM, Erich Hoover wrote: >> ... >> +int newsize = (int)*maxsize; >> + >> +/* Make sure there is at least enough room for this entry */ >> +newsize -= sizeof(WSACMSGHDR) + CMSG_ALIGN(len); >> +if (newsize < 0) >> +return 0; >> +*maxsize = (UL

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-13 Thread Mike Kaplinskiy
On Wed, Oct 13, 2010 at 10:30 AM, Erich Hoover wrote: > > Is it acceptable to just add a parameter for WS2_recvfrom() or should > this function get renamed?  This function currently mirrors > WSARecvFrom exactly. > Feel free to change the name if you want, I don't have any problems with it (althou

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-13 Thread Erich Hoover
On Tue, Oct 12, 2010 at 10:12 PM, Mike Kaplinskiy wrote: > ... > +    int newsize = (int)*maxsize; > + > +    /* Make sure there is at least enough room for this entry */ > +    newsize -= sizeof(WSACMSGHDR) + CMSG_ALIGN(len); > +    if (newsize < 0) > +        return 0; > +    *maxsize = (ULONG)n

Re: ws2_32: Add support and tests for WSARecvMsg and IP_PKTINFO.

2010-10-12 Thread Mike Kaplinskiy
rk on Windows when used with the special WSARecvMsg > function (Bug #19493).  The attached patch addresses this issue by > implementing WSARecvMsg through WS2_recvfrom and by converting the Unix > IP_PKTINFO response to the Windows equivalent. > ChangeLog: >     ws2_32: Add support a