Commit 51c0881c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't enable broadcast on IPv6 sockets since IPv6 does not do broadcast anyhow

parent 00a0ab4f
/*****************************************************************************
* ipv6.c: IPv6 network abstraction layer
*****************************************************************************
* Copyright (C) 2002-2005 the VideoLAN team
* Copyright (C) 2002-2006 the VideoLAN team
* $Id$
*
* Authors: Alexis Guillard <alexis.guillard@bt.com>
......@@ -254,18 +254,6 @@ static int OpenUDP( vlc_object_t * p_this )
return 0;
}
/* Allow broadcast reception if we bound on in6addr_any */
if( !*psz_bind_addr )
{
i_opt = 1;
if( setsockopt( i_handle, SOL_SOCKET, SO_BROADCAST,
(void*) &i_opt, sizeof( i_opt ) ) == -1 )
{
msg_Warn( p_this, "IPv6 warning: cannot configure socket "
"(SO_BROADCAST: %s)", strerror(errno) );
}
}
/* Join the multicast group if the socket is a multicast address */
#if defined( WIN32 ) || defined( HAVE_IF_NAMETOINDEX )
if( IN6_IS_ADDR_MULTICAST(&sock.sin6_addr) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment