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
1e904efe
Commit
1e904efe
authored
Mar 24, 2004
by
David S. Miller
Committed by
Linus Torvalds
Mar 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IGMP]: Do nothing in ip_mc_down() if ip_mc_up() was not called previously.
parent
dde1ec5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
include/linux/inetdevice.h
include/linux/inetdevice.h
+2
-0
net/ipv4/igmp.c
net/ipv4/igmp.c
+5
-0
No files found.
include/linux/inetdevice.h
View file @
1e904efe
...
...
@@ -36,6 +36,8 @@ struct in_device
rwlock_t
lock
;
int
dead
;
struct
in_ifaddr
*
ifa_list
;
/* IP ifaddr chain */
int
mc_initted
;
struct
ip_mc_list
*
mc_list
;
/* IP multicast filter chain */
rwlock_t
mc_lock
;
/* for mc_tomb */
struct
ip_mc_list
*
mc_tomb
;
...
...
net/ipv4/igmp.c
View file @
1e904efe
...
...
@@ -1217,6 +1217,9 @@ void ip_mc_down(struct in_device *in_dev)
ASSERT_RTNL
();
if
(
!
in_dev
->
mc_initted
)
return
;
#ifdef CONFIG_IP_MULTICAST
in_dev
->
mr_ifc_count
=
0
;
if
(
del_timer
(
&
in_dev
->
mr_ifc_timer
))
...
...
@@ -1262,6 +1265,8 @@ void ip_mc_up(struct in_device *in_dev)
for
(
i
=
in_dev
->
mc_list
;
i
;
i
=
i
->
next
)
igmp_group_added
(
i
);
in_dev
->
mc_initted
=
1
;
}
/*
...
...
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