Commit 8fcd56ee authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

got the value for PROTECTION_LEVEL_* hard-coded

, but still miss the other one.

Anyone with Visual Studio here ?
parent 642b666c
......@@ -194,7 +194,7 @@ static int OpenUDP( vlc_object_t * p_this )
# ifdef IPV6_PROTECTION_LEVEL
if( ptr->ai_family == AF_INET6 )
{
int i_val = PROTECTION_LEVEL_UNRESTRICTED;
int i_val = 30 /*PROTECTION_LEVEL_UNRESTRICTED*/;
setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, &i_val,
sizeof( i_val ) );
}
......
......@@ -128,7 +128,7 @@ static int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
# ifdef IPV6_PROTECTION_LEVEL
if( i_family == AF_INET6 )
{
i_val = PROTECTION_LEVEL_UNRESTRICTED;
i_val = 30 /*PROTECTION_LEVEL_UNRESTRICTED*/;
setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL,
(const char*)&i_val, sizeof( i_val ) );
}
......
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