Re: [PATCH] SO_REUSEADDR and SO_REUSEPORT behaviour

From: Julian Elischer <julian_at_freebsd.org>
Date: Sat, 30 Nov 2013 00:14:59 +0800
On 11/29/13, 8:04 PM, Ermal Luçi wrote:
> Hello,
>
> since SO_REUSEADDR and SO_REUSEPORT are supposed to allow two daemons to
> share the same port and possibly listening ip, you would expect if you bind
> two daemon with such options to same port to see the same traffic on both!
this is not how I interpret it.. I presume it is is to allow two 
OUTGOING sessions from the same source.
>
> This is not the case today.
> Only multicast sockets seem to have the behaviour of broadcasting the data
> to all sockets sharing the same properties through these options!
>
> The patch at [1] implements/corrects the behaviour for UDP sockets.
> Is there anything to be corrected in that patch?
> Why it has not been provided there before?
> Can it be committed to the tree?
> Any extra security checks for jails needed there?
>
>
> [1]
> https://github.com/pfsense/pfsense-tools/blob/master/patches/RELENG_10_0/udp_SO_REUSEADDR%2BPORT.diff
>
Received on Fri Nov 29 2013 - 15:15:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:44 UTC