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
frag6.c
icmp6.c Use ICMP6STAT_INC() macro for ICMPv6 errors accounting. 2013-06-19 15:59:21 +00:00
icmp6.h
in6_cksum.c
in6_gif.c
in6_gif.h
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
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
in6_pcbgroup.c
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
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
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
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
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
mld6_var.h
mld6.c
mld6.h
nd6_nbr.c
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
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
scope6_var.h
scope6.c
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
send.c
send.h
tcp6_var.h
udp6_usrreq.c Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics 2013-06-20 09:55:53 +00:00
udp6_var.h