set SO_REUSEPORT on UDP multicast and broadcast sockets
This commit is contained in:
parent
f77e0f90d5
commit
e1627c5712
@ -7,6 +7,7 @@ DPB_PROPERTIES= parallel parallel2
|
||||
COMMENT= Chromium browser
|
||||
|
||||
V= 100.0.4896.88
|
||||
REVISION= 0
|
||||
|
||||
DISTNAME= chromium-${V}
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user