From c4c2a6192da433dc769ea0323936aef1016fdf06 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sat, 11 Oct 2008 17:28:57 +0000 Subject: [PATCH] * we no longer demand the socket that receives a broadcast datagram to have the SO_BROADCAST flags set (the flag is only needed for sending a broadcast) - fixes part of #2065 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27973 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/net/ProtocolUtilities.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/headers/private/net/ProtocolUtilities.h b/headers/private/net/ProtocolUtilities.h index ad5e3a08ea..855f5cb34b 100644 --- a/headers/private/net/ProtocolUtilities.h +++ b/headers/private/net/ProtocolUtilities.h @@ -199,13 +199,6 @@ DECL_DATAGRAM_SOCKET(inline status_t)::SocketEnqueue(net_buffer *_buffer) DECL_DATAGRAM_SOCKET(inline status_t)::_SocketEnqueue(net_buffer *_buffer) { - if (_buffer->flags & MSG_BCAST) { - // only deliver datagrams sent to a broadcast address - // to sockets with SO_BROADCAST on. - if (!(fSocket->options & SO_BROADCAST)) - return B_OK; - } - net_buffer *buffer = ModuleBundle::Buffer()->clone(_buffer, false); if (buffer == NULL) return B_NO_MEMORY;