freebsd-skq/sys/netinet6
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
..
dest6.c Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
frag6.c Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
icmp6.c Use ICMP6STAT_INC() macro for ICMPv6 errors accounting. 2013-06-19 15:59:21 +00:00
icmp6.h
in6_cksum.c MFp4 bz_ipv6_fast: 2012-05-24 18:25:09 +00:00
in6_gif.c Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
in6_gif.h Remove __P. 2012-10-22 21:49:56 +00:00
in6_ifattach.c - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGE 2013-07-02 16:58:15 +00:00
in6_ifattach.h Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group 2013-05-04 19:16:26 +00:00
in6_mcast.c Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
in6_pcb.c In r227207, to fix the issue with possible NULL inp_socket pointer 2013-07-04 18:38:00 +00:00
in6_pcb.h Remove __P. 2012-10-22 21:49:56 +00:00
in6_pcbgroup.c Implement a CPU-affine TCP and UDP connection lookup data structure, 2011-06-06 12:55:02 +00:00
in6_proto.c Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group 2013-05-04 19:16:26 +00:00
in6_rmx.c Eliminate code checking if found IPv6 rte is dynamic. IPv6 redirects 2012-10-22 12:54:52 +00:00
in6_src.c Fix accounting after the r249528, also add several another counters to 2013-04-16 11:31:26 +00:00
in6_var.h - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGE 2013-07-02 16:58:15 +00:00
in6.c - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGE 2013-07-02 16:58:15 +00:00
in6.h Remove __P. 2012-10-22 21:49:56 +00:00
ip6_ecn.h
ip6_forward.c Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics 2013-06-20 09:55:53 +00:00
ip6_id.c
ip6_input.c Use IP6S_M2MMAX macro. 2013-04-16 11:19:13 +00:00
ip6_ipsec.c Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
ip6_ipsec.h
ip6_mroute.c Use PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast 2013-06-19 21:50:17 +00:00
ip6_mroute.h Remove route caching from IP multicast routing code. There is no 2012-07-02 19:44:18 +00:00
ip6_output.c In r227207, to fix the issue with possible NULL inp_socket pointer 2013-07-04 18:38:00 +00:00
ip6_var.h Fix build after r249543. 2013-04-16 16:59:29 +00:00
ip6.h
ip6protosw.h Remove __P. 2012-10-22 21:49:56 +00:00
mld6_var.h
mld6.c - Use m_getcl() instead of hand allocating. 2013-03-15 12:50:29 +00:00
mld6.h
nd6_nbr.c - Use m_getcl() instead of hand allocating. 2013-03-15 13:48:53 +00:00
nd6_rtr.c Delete the nd6 entries associated with an off-link prefix 2013-06-24 05:01:13 +00:00
nd6.c - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGE 2013-07-02 16:58:15 +00:00
nd6.h Add const qualifier to the dst parameter of the ifnet if_output method. 2013-04-26 12:50:32 +00:00
pim6_var.h Remove __P. 2012-10-22 21:49:56 +00:00
pim6.h
raw_ip6.c Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics 2013-06-20 09:55:53 +00:00
raw_ip6.h Use RIP6STAT_INC() macro for raw ip6 statistics accounting. 2013-06-19 20:48:34 +00:00
route6.c Use IP6STAT_INC/IP6STAT_DEC macros to update ip6 stats. 2013-04-09 07:11:22 +00:00
scope6_var.h - Move definition of V_deembed_scopeid to scope6_var.h. 2012-12-05 19:45:24 +00:00
scope6.c Simplify in6_setscope() function to get better performance. 2013-01-10 00:10:24 +00:00
sctp6_usrreq.c Honor the net.inet6.ip6.v6only sysctl variable and the IPV6_V6ONLY 2013-05-10 18:09:38 +00:00
sctp6_var.h Add support for SCTP/UDP/IPV6. 2012-11-17 20:04:04 +00:00
send.c Revert previous commit... 2012-10-10 08:36:38 +00:00
send.h Use uint8_t for sockaddr sa_len. 2011-06-05 11:40:30 +00:00
tcp6_var.h Remove __P. 2012-10-22 21:49:56 +00:00
udp6_usrreq.c Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics 2013-06-20 09:55:53 +00:00
udp6_var.h