Mikolaj Golub efdf104bca In r227207, to fix the issue with possible NULL inp_socket pointer
dereferencing, when checking for SO_REUSEPORT option (and SO_REUSEADDR
for multicast), INP_REUSEPORT flag was introduced to cache the socket
option.  It was decided then that one flag would be enough to cache
both SO_REUSEPORT and SO_REUSEADDR: when processing SO_REUSEADDR
setsockopt(2), it was checked if it was called for a multicast address
and INP_REUSEPORT was set accordingly.

Unfortunately that approach does not work when setsockopt(2) is called
before binding to a multicast address: the multicast check fails and
INP_REUSEPORT is not set.

Fix this by adding INP_REUSEADDR flag to unconditionally cache
SO_REUSEADDR.

PR:		179901
Submitted by:	Michael Gmelin freebsd grem.de (initial version)
Reviewed by:	rwatson
MFC after:	1 week
2013-07-04 18:38:00 +00:00
..
2012-08-07 07:52:25 +00:00
2013-05-11 19:05:38 +00:00
2013-04-16 19:32:12 +00:00
2012-10-12 09:24:24 +00:00
2012-09-06 07:03:56 +00:00
2013-07-03 18:48:43 +00:00
2013-07-03 18:48:43 +00:00
2013-07-03 18:48:43 +00:00
2013-07-03 18:48:43 +00:00
2012-11-25 14:25:08 +00:00
2012-06-25 17:15:09 +00:00
2013-06-02 10:35:08 +00:00
2012-11-17 20:04:04 +00:00
2012-05-24 23:03:23 +00:00
2012-11-27 19:07:28 +00:00