set SO_REUSEPORT on UDP multicast and broadcast sockets

This commit is contained in:
robert 2022-04-15 05:44:30 +00:00
parent f77e0f90d5
commit e1627c5712
4 changed files with 20 additions and 1 deletions

View File

@ -7,6 +7,7 @@ DPB_PROPERTIES= parallel parallel2
COMMENT= Chromium browser
V= 100.0.4896.88
REVISION= 0
DISTNAME= chromium-${V}

View File

@ -10,3 +10,12 @@ Index: net/socket/udp_socket_posix.cc
if (confirm) {
sendto_flags_ |= MSG_CONFIRM;
} else {
@@ -595,7 +595,7 @@ int UDPSocketPosix::SetBroadcast(bool broadcast) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
int value = broadcast ? 1 : 0;
int rv;
-#if BUILDFLAG(IS_APPLE)
+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD)
// SO_REUSEPORT on OSX permits multiple processes to each receive
// UDP multicast or broadcast datagrams destined for the bound
// port.

View File

@ -10,7 +10,7 @@ DPB_PROPERTIES+= lonesome
COMMENT= Iridium browser
V= 2022.04.100.0
REVISION= 0
REVISION= 1
DISTNAME= iridium-browser-${V}
PKGNAME= iridium-${V}

View File

@ -10,3 +10,12 @@ Index: net/socket/udp_socket_posix.cc
if (confirm) {
sendto_flags_ |= MSG_CONFIRM;
} else {
@@ -595,7 +595,7 @@ int UDPSocketPosix::SetBroadcast(bool broadcast) {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
int value = broadcast ? 1 : 0;
int rv;
-#if BUILDFLAG(IS_APPLE)
+#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_BSD)
// SO_REUSEPORT on OSX permits multiple processes to each receive
// UDP multicast or broadcast datagrams destined for the bound
// port.