RFC: Patch to implement WSARecvMsg and IP_PKTINFO

Erich Hoover ehoover at mines.edu
Sun Oct 10 20:03:59 CDT 2010

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 when used with the
WSARecvMsg function (Bug #19493).  I've attached a patch to address
this issue (including tests), and I would appreciate any comments on
it.  This patch approaches the problem by:
1) Implementing WSARecvMsg through WS2_recvfrom
2) Passing the control buffer as an additional WSABUF with an internal
flag (cleared internally to prevent confusing applications)
3) Converting the returned Unix IP_PKTINFO data to the equivalent
Windows version in WS2_recv() by utilizing a temporary buffer

Thanks in advance for your feedback.

Erich Hoover
ehoover at mines.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ws2_32-Add-support-and-tests-for-WSARecvMsg-and-IP_P.patch
Type: text/x-patch
Size: 16129 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20101010/27590113/attachment-0001.bin>

More information about the wine-devel mailing list