[PATCH 4/4] ws2_32: Selectively bind UDP sockets to interfaces while still allowing broadcast packets (try 4).

Erich E. Hoover ehoover at mines.edu
Fri Jan 13 01:10:30 CST 2012


Real Name:
    Erich Hoover

Description:
    Ok, back again for Bug #7929.  I really wanted to avoid having to
learn how to do Linux Socket Filters/Berkeley Packet Filters, but this
is really my last thought about how to solve this bug without somehow
convincing the network subsystem maintainer to reverse his ruling.
For reference, a kinder version of his rejection of modifying the
kernel to support this feature is here:
http://www.mail-archive.com/linux-net@vger.kernel.org/msg01306.html
    Anyway, this solution involves two components: it registers a
Linux Socket Filter on the socket to screen out incoming packets not
destined for the given interface, and it uses an IP_PKTINFO control
message header to suggest the outgoing interface for packets on the
socket (builds on patch 3).  This solution requires no additional
administrative privileges, and I believe it should address the
concerns expressed for using IP_PKTINFO to perform both the incoming
and the outgoing filtering.

Changelog:
    ws2_32: Selectively bind UDP sockets to interfaces while still
allowing broadcast packets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ws2_32-Selectively-bind-UDP-sockets-to-interfaces-wh.patch
Type: text/x-patch
Size: 8002 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120113/47d82f2a/attachment.bin>


More information about the wine-patches mailing list