[PATCH] server: Use SO_BINDTODEVICE in bind_to_index() if possible.

Erich E. Hoover erich.e.hoover at gmail.com
Tue Oct 12 13:50:11 CDT 2021


On 10/12/21 21:06, Paul Gofman wrote:
> Bug 33008 looks like about this.

This is correct, Bug 33008 is about two applications using the same
port and binding to two different interfaces.  This can be solved with
a SO_ATTACH_REUSEPORT_CBPF rule, but it is complicated.

On 10/12/21 21:06, Paul Gofman wrote:
> Bug 50499 is not related, that one is
> about SO_REUSEADDR explicitly used by an app (and not set by us to
> workaround broadcast issue) and behaving differently on Windows and
> Linux WRT which socket receives packets.

This is correct, though the solution is "the same".  The SO_REUSEADDR
behavior is easier to implement though, it just involves applying a
SO_ATTACH_REUSEPORT_CBPF rule that always returns zero (zero is
oldest).

Best,
Erich



More information about the wine-devel mailing list