Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
df1e5c50
Commit
df1e5c50
authored
Aug 21, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define IPV6_PROTECTION_LEVEL manually - closes #96
parent
88a5de2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
modules/misc/network/ipv6.c
modules/misc/network/ipv6.c
+3
-4
src/misc/net.c
src/misc/net.c
+3
-4
No files found.
modules/misc/network/ipv6.c
View file @
df1e5c50
...
...
@@ -195,16 +195,15 @@ static int OpenUDP( vlc_object_t * p_this )
#endif
#ifdef WIN32
# ifdef IPV6_PROTECTION_LEVEL
# ifndef IPV6_PROTECTION_LEVEL
# define IPV6_PROTECTION_LEVEL 23
# endif
if
(
ptr
->
ai_family
==
AF_INET6
)
{
int
i_val
=
30
/*PROTECTION_LEVEL_UNRESTRICTED*/
;
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_PROTECTION_LEVEL
,
&
i_val
,
sizeof
(
i_val
)
);
}
# else
# warning You are using outdated headers for Winsock !
# endif
#endif
/* We may want to reuse an already used socket */
...
...
src/misc/net.c
View file @
df1e5c50
...
...
@@ -127,16 +127,15 @@ static int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
#endif
#if defined( WIN32 ) || defined( UNDER_CE )
# ifdef IPV6_PROTECTION_LEVEL
# ifndef IPV6_PROTECTION_LEVEL
# define IPV6_PROTECTION_LEVEL 23
# endif
if
(
i_family
==
AF_INET6
)
{
i_val
=
30
/*PROTECTION_LEVEL_UNRESTRICTED*/
;
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_PROTECTION_LEVEL
,
(
const
char
*
)
&
i_val
,
sizeof
(
i_val
)
);
}
# else
# warning You are using outdated headers for Winsock !
# endif
#endif
return
fd
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment