[PATCH 3/6] ws2_32: Patch to selectively bind to interfaces while still allowing broadcast packets

Erich Hoover ehoover at mines.edu
Wed Sep 30 13:00:55 CDT 2009


Real Name:
    Erich Hoover
Description:
    The attached patch adds the "bare essentials" for binding to a
specific interface without disabling broadcast packets.  This patch
works by storing the interface ID associated with the bind request,
enabling the IP_PKTINFO socket option, and binding instead to
INADDR_ANY.  Later the stored socket ID is used to filter packets
based on interface ID (on recv) and to set the correct outgoing
interface (on send).  Please note that the remaining parts of this
patchset (4 through 6) are necessary to ensure that packets with an
interface mismatch are always properly handled.
Changelog:
    ws2_32: Patch to selectively bind to interfaces while still
allowing broadcast packets
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ws2_32-Patch-to-selectively-bind-to-interfaces-whil.patch
Type: text/x-diff
Size: 10879 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090930/d139f6a7/attachment-0001.patch>


More information about the wine-patches mailing list