[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
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:
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.
ws2_32: Selectively bind UDP sockets to interfaces while still
allowing broadcast packets.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8002 bytes
Desc: not available
More information about the wine-patches