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