Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ec7a0ab6
Commit
ec7a0ab6
authored
Nov 09, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IPv4 multicast subscription
parent
aedf2f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
include/network.h
include/network.h
+1
-1
src/network/udp.c
src/network/udp.c
+2
-0
No files found.
include/network.h
View file @
ec7a0ab6
...
@@ -259,7 +259,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
...
@@ -259,7 +259,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
struct
sockaddr_in
*
v4
=
(
struct
sockaddr_in
*
)
addr
;
struct
sockaddr_in
*
v4
=
(
struct
sockaddr_in
*
)
addr
;
if
(
len
<
sizeof
(
*
v4
))
if
(
len
<
sizeof
(
*
v4
))
return
VLC_FALSE
;
return
VLC_FALSE
;
return
IN_MULTICAST
(
v4
->
sin_addr
.
s_addr
)
!=
0
;
return
IN_MULTICAST
(
ntohl
(
v4
->
sin_addr
.
s_addr
)
)
!=
0
;
}
}
#endif
#endif
...
...
src/network/udp.c
View file @
ec7a0ab6
...
@@ -246,6 +246,8 @@ int net_Subscribe (vlc_object_t *obj, int fd, const struct sockaddr *addr,
...
@@ -246,6 +246,8 @@ int net_Subscribe (vlc_object_t *obj, int fd, const struct sockaddr *addr,
imr
.
ipv6mr_interface
=
v6
->
sin6_scope_id
;
imr
.
ipv6mr_interface
=
v6
->
sin6_scope_id
;
memcpy
(
&
imr
.
ipv6mr_multiaddr
,
&
v6
->
sin6_addr
,
16
);
memcpy
(
&
imr
.
ipv6mr_multiaddr
,
&
v6
->
sin6_addr
,
16
);
msg_Dbg
(
obj
,
"IPV6_JOIN_GROUP multicast request"
);
if
(
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_JOIN_GROUP
,
&
imr
,
if
(
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_JOIN_GROUP
,
&
imr
,
sizeof
(
imr
)))
sizeof
(
imr
)))
{
{
...
...
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