DEVEL15-rx-windows-xmit-20090126
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 27 Jan 2009 06:05:04 +0000 (06:05 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 27 Jan 2009 06:05:04 +0000 (06:05 +0000)
commitee3f5dfda9518e4fbdfbdd62b1e269dacb67d9b3
tree5f25b2b2ea714b91669a58c2c99a7a4aef6c2620
parent3923a8ffe5d9fa17cd959cfd9435e3afc2b253dd
DEVEL15-rx-windows-xmit-20090126

LICENSE MIT

The WinSock API does not include the Posix recvmsg/sendmsg interfaces.
Beginning with XP/2003 Microsoft began to support WSARecvMsg which is
a mostly compatible implementation of recvmsg.  In Vista/2008 Microsoft
began to support WSASendMsg a mostly compatible implementation of sendmsg.

Neither are part of the WinSock API and therefore they must be loaded
at runtime via a WSAIoctl() call to obtain the function pointers.
When the functions are available it is now possible to avoid a large
number of memcpy() calls.

This patch also enables UDP port unreachable messages on XP and above.

(cherry picked from commit a4f63a818eea476efa456132ca6112329ef8a484)
src/rx/rx_user.c
src/rx/rx_xmit_nt.c
src/rx/rx_xmit_nt.h