* 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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user