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
62669862
Commit
62669862
authored
Nov 26, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick IPv6 scope ID from group address, instead of source address
Fix possible segfault as a side-effect
parent
30b35035
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
11 deletions
+21
-11
src/network/udp.c
src/network/udp.c
+21
-11
No files found.
src/network/udp.c
View file @
62669862
...
@@ -351,22 +351,13 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
...
@@ -351,22 +351,13 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
#ifdef AF_INET6
#ifdef AF_INET6
case
AF_INET6
:
case
AF_INET6
:
level
=
SOL_IPV6
;
level
=
SOL_IPV6
;
if
((
src
!=
NULL
)
if
(((
const
struct
sockaddr_in6
*
)
grp
)
->
sin6_scope_id
)
&&
memcmp
(
&
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_addr
,
iid
=
((
const
struct
sockaddr_in6
*
)
grp
)
->
sin6_scope_id
;
&
in6addr_any
,
sizeof
(
in6addr_any
))
==
0
)
src
=
NULL
;
if
(((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_scope_id
)
iid
=
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_scope_id
;
break
;
break
;
#endif
#endif
case
AF_INET
:
case
AF_INET
:
level
=
SOL_IP
;
level
=
SOL_IP
;
if
((
src
!=
NULL
)
&&
((
const
struct
sockaddr_in
*
)
src
)
->
sin_addr
.
s_addr
==
INADDR_ANY
)
src
=
NULL
;
break
;
break
;
default:
default:
...
@@ -374,6 +365,25 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
...
@@ -374,6 +365,25 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
return
-
1
;
return
-
1
;
}
}
if
(
src
!=
NULL
)
switch
(
src
->
sa_family
)
{
#ifdef AF_INET6
case
AF_INET6
:
if
(
memcmp
(
&
((
const
struct
sockaddr_in6
*
)
src
)
->
sin6_addr
,
&
in6addr_any
,
sizeof
(
in6addr_any
))
==
0
)
src
=
NULL
;
break
;
#endif
case
AF_INET
:
if
(((
const
struct
sockaddr_in
*
)
src
)
->
sin_addr
.
s_addr
==
INADDR_ANY
)
src
=
NULL
;
break
;
}
/* Agnostic ASM/SSM multicast join */
/* Agnostic ASM/SSM multicast join */
#ifdef MCAST_JOIN_SOURCE_GROUP
#ifdef MCAST_JOIN_SOURCE_GROUP
union
union
...
...
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