Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
40603c8b
Commit
40603c8b
authored
22 years ago
by
Alexey Kuznetsov
Committed by
David S. Miller
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/ipv6/mcast.c: Handle IPV6_LEAVE_GROUP with ipv6mr_interface==0
parent
1aea2e39
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/ipv6/mcast.c
net/ipv6/mcast.c
+2
-2
No files found.
net/ipv6/mcast.c
View file @
40603c8b
...
...
@@ -141,14 +141,14 @@ int ipv6_sock_mc_drop(struct sock *sk, int ifindex, struct in6_addr *addr)
write_lock_bh
(
&
ipv6_sk_mc_lock
);
for
(
lnk
=
&
np
->
ipv6_mc_list
;
(
mc_lst
=
*
lnk
)
!=
NULL
;
lnk
=
&
mc_lst
->
next
)
{
if
(
mc_lst
->
ifindex
==
ifindex
&&
if
(
(
ifindex
==
0
||
mc_lst
->
ifindex
==
ifindex
)
&&
ipv6_addr_cmp
(
&
mc_lst
->
addr
,
addr
)
==
0
)
{
struct
net_device
*
dev
;
*
lnk
=
mc_lst
->
next
;
write_unlock_bh
(
&
ipv6_sk_mc_lock
);
if
((
dev
=
dev_get_by_index
(
ifindex
))
!=
NULL
)
{
if
((
dev
=
dev_get_by_index
(
mc_lst
->
ifindex
))
!=
NULL
)
{
ipv6_dev_mc_dec
(
dev
,
&
mc_lst
->
addr
);
dev_put
(
dev
);
}
...
...
This diff is collapsed.
Click to expand it.
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