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
..
2013-07-02 08:44:56 +00:00
2012-08-17 01:49:51 +00:00
2013-03-17 07:37:10 +00:00
2013-05-04 19:16:26 +00:00
2012-06-18 17:11:24 +00:00
2013-04-26 12:50:32 +00:00
2013-04-26 12:50:32 +00:00
2013-07-03 17:27:32 +00:00
2013-04-26 12:50:32 +00:00
2013-06-07 17:12:08 +00:00
2012-07-31 08:04:49 +00:00
2012-12-05 08:04:20 +00:00
2013-07-02 16:39:12 +00:00
2013-07-04 18:38:00 +00:00
2013-07-04 18:38:00 +00:00
2012-10-13 09:31:01 +00:00
2013-05-06 16:42:18 +00:00
2013-04-21 21:28:38 +00:00
2013-04-27 23:36:01 +00:00
2013-04-09 07:11:22 +00:00
2013-04-26 12:50:32 +00:00
2013-04-26 12:50:32 +00:00
2012-10-22 21:09:03 +00:00
2012-08-07 07:52:25 +00:00
2012-11-02 01:20:55 +00:00
2013-03-20 10:35:33 +00:00
2013-05-11 19:05:38 +00:00
2012-12-05 08:04:20 +00:00
2013-05-06 16:42:18 +00:00
2013-06-21 06:36:26 +00:00
2012-10-22 21:09:03 +00:00
2013-04-16 19:32:12 +00:00
2012-07-02 19:44:18 +00:00
2013-03-16 08:58:28 +00:00
2012-10-12 09:24:24 +00:00
2013-07-04 18:38:00 +00:00
2013-04-12 16:29:15 +00:00
2012-05-04 21:00:32 +00:00
2012-12-05 08:04:20 +00:00
2013-02-09 17:26:14 +00:00
2012-06-28 16:01:08 +00:00
2012-12-05 08:04:20 +00:00
2012-05-23 11:26:28 +00:00
2012-08-04 08:03:30 +00:00
2012-06-24 21:25:54 +00:00
2012-09-06 07:03:56 +00:00
2013-03-31 18:27:46 +00:00
2012-05-23 11:26:28 +00:00
2012-05-23 11:26:28 +00:00
2012-05-23 11:26:28 +00:00
2012-05-23 11:26:28 +00:00
2012-09-07 13:36:42 +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-09-07 13:36:42 +00:00
2012-05-23 11:26:28 +00:00
2013-05-24 09:21:18 +00:00
2012-05-23 11:26:28 +00:00
2013-05-17 21:45:52 +00:00
2013-02-09 17:26:14 +00:00
2013-07-03 18:48:43 +00:00
2013-02-11 21:02:49 +00:00
2012-11-26 16:44:03 +00:00
2012-11-25 14:25:08 +00:00
2012-05-23 11:26:28 +00:00
2013-02-09 17:26:14 +00:00
2013-02-09 17:26:14 +00:00
2012-06-25 17:15:09 +00:00
2013-02-09 08:27:08 +00:00
2012-05-23 11:26:28 +00:00
2012-10-29 20:47:32 +00:00
2013-02-11 21:02:49 +00:00
2012-10-29 20:47:32 +00:00
2013-02-09 17:26:14 +00:00
2013-06-02 10:35:08 +00:00
2012-11-17 20:04:04 +00:00
2013-03-07 04:42:20 +00:00
2012-10-22 21:09:03 +00:00
2012-10-19 14:00:03 +00:00
2013-06-21 06:36:26 +00:00
2013-02-21 17:00:35 +00:00
2012-05-24 23:03:23 +00:00
2012-06-19 07:34:13 +00:00
2012-06-19 07:34:13 +00:00
2013-06-03 12:55:13 +00:00
2013-02-01 14:21:09 +00:00
2012-02-15 16:09:56 +00:00
2013-06-03 12:55:13 +00:00
2013-02-01 14:21:09 +00:00
2012-10-28 18:07:34 +00:00
2013-03-04 11:09:56 +00:00
2012-11-27 19:07:28 +00:00
2012-12-05 08:04:20 +00:00
2013-01-26 01:41:42 +00:00
2013-06-03 12:55:13 +00:00
2013-02-01 15:32:20 +00:00
2013-01-26 00:57:29 +00:00
2012-08-21 18:09:33 +00:00
2013-06-20 09:55:53 +00:00
2012-03-27 15:14:29 +00:00
2013-02-01 15:32:20 +00:00