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 mike.kaplins...@gmail.com wrote: On Sun, Oct 17, 2010 at 5:51 PM, Erich Hoover ehoo...@mines.edu 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

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 ehoo...@mines.edu wrote: On Sat, Oct 16, 2010 at 1:41 PM, Mike Kaplinskiy mike.kaplins...@gmail.com wrote: On Thu, Oct 14, 2010 at 10:08 PM, Erich Hoover ehoo...@mines.edu wrote: ...     DWORD                               flags;     unsigned int

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 mike.kaplins...@gmail.com wrote: On Thu, Oct 14, 2010 at 10:08 PM, Erich Hoover ehoo...@mines.edu wrote: ...     DWORD                               flags;     unsigned int                        n_iovecs;     unsigned int                      

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 ehoo...@mines.edu 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

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 ehoo...@mines.edu 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 =

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

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 mike.kaplins...@gmail.com 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; +    

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 ehoo...@mines.edu 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

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

2010-10-12 Thread Mike Kaplinskiy
On Tue, Oct 12, 2010 at 8:01 PM, Erich Hoover ehoo...@mines.edu wrote: Real Name:     Erich Hoover Description:     While searching for something else I discovered a bug relevant to the interface-bound UDP broadcast patches I've been working on.  Apparently, IP_PKTINFO does work on Windows