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
nexedi
linux
Commits
e45c2c22
Commit
e45c2c22
authored
Aug 30, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IGMP]: Make ip_mc_dec_group return void.
parent
e0b92f50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
include/linux/igmp.h
include/linux/igmp.h
+1
-1
net/ipv4/igmp.c
net/ipv4/igmp.c
+2
-5
No files found.
include/linux/igmp.h
View file @
e45c2c22
...
...
@@ -115,7 +115,7 @@ extern void ip_mc_init_dev(struct in_device *);
extern
void
ip_mc_destroy_dev
(
struct
in_device
*
);
extern
void
ip_mc_up
(
struct
in_device
*
);
extern
void
ip_mc_down
(
struct
in_device
*
);
extern
int
ip_mc_dec_group
(
struct
in_device
*
in_dev
,
u32
addr
);
extern
void
ip_mc_dec_group
(
struct
in_device
*
in_dev
,
u32
addr
);
extern
void
ip_mc_inc_group
(
struct
in_device
*
in_dev
,
u32
addr
);
#endif
#endif
net/ipv4/igmp.c
View file @
e45c2c22
...
...
@@ -530,9 +530,8 @@ void ip_mc_inc_group(struct in_device *in_dev, u32 addr)
* A socket has left a multicast group on device dev
*/
int
ip_mc_dec_group
(
struct
in_device
*
in_dev
,
u32
addr
)
void
ip_mc_dec_group
(
struct
in_device
*
in_dev
,
u32
addr
)
{
int
err
=
-
ESRCH
;
struct
ip_mc_list
*
i
,
**
ip
;
ASSERT_RTNL
();
...
...
@@ -549,13 +548,11 @@ int ip_mc_dec_group(struct in_device *in_dev, u32 addr)
ip_rt_multicast_event
(
in_dev
);
ip_ma_put
(
i
);
return
0
;
return
;
}
err
=
0
;
break
;
}
}
return
-
ESRCH
;
}
/* Device going down */
...
...
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