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
f110e985
Commit
f110e985
authored
May 22, 2003
by
Hideaki Yoshifuji
Committed by
David S. Miller
May 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: procfs clean-up
parent
7ce53b76
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
+20
-13
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+7
-9
net/ipv6/proc.c
net/ipv6/proc.c
+11
-2
net/ipv6/raw.c
net/ipv6/raw.c
+1
-1
net/ipv6/route.c
net/ipv6/route.c
+1
-1
No files found.
net/ipv6/af_inet6.c
View file @
f110e985
...
...
@@ -77,11 +77,13 @@ MODULE_LICENSE("GPL");
extern
int
raw6_proc_init
(
void
);
extern
int
raw6_proc_exit
(
void
);
extern
int
anycast6_get_info
(
char
*
,
char
**
,
off_t
,
int
);
extern
int
tcp6_get_info
(
char
*
,
char
**
,
off_t
,
int
);
extern
int
udp6_get_info
(
char
*
,
char
**
,
off_t
,
int
);
extern
int
afinet6_get_info
(
char
*
,
char
**
,
off_t
,
int
);
extern
int
afinet6_get_snmp
(
char
*
,
char
**
,
off_t
,
int
);
extern
int
ipv6_misc_proc_init
(
void
);
extern
int
ipv6_misc_proc_exit
(
void
);
extern
int
anycast6_get_info
(
char
*
,
char
**
,
off_t
,
int
);
#endif
#ifdef CONFIG_SYSCTL
...
...
@@ -816,9 +818,7 @@ static int __init inet6_init(void)
#ifdef CONFIG_PROC_FS
proc_anycast6_fail:
proc_net_remove
(
"snmp6"
);
proc_net_remove
(
"dev_snmp6"
);
proc_net_remove
(
"sockstat6"
);
ipv6_misc_proc_exit
();
proc_misc6_fail:
proc_net_remove
(
"udp6"
);
proc_udp6_fail:
...
...
@@ -852,9 +852,7 @@ static void inet6_exit(void)
raw6_proc_exit
();
proc_net_remove
(
"tcp6"
);
proc_net_remove
(
"udp6"
);
proc_net_remove
(
"sockstat6"
);
proc_net_remove
(
"dev_snmp6"
);
proc_net_remove
(
"snmp6"
);
ipv6_misc_proc_exit
();
proc_net_remove
(
"anycast6"
);
#endif
/* Cleanup code parts. */
...
...
net/ipv6/proc.c
View file @
f110e985
...
...
@@ -291,10 +291,19 @@ int __init ipv6_misc_proc_init(void)
return
rc
;
proc_sockstat6_fail:
remove_proc_entry
(
"dev_snmp6"
,
proc_net
);
proc_net_remove
(
"dev_snmp6"
);
proc_dev_snmp6_fail:
remove_proc_entry
(
"snmp6"
,
proc_net
);
proc_net_remove
(
"snmp6"
);
proc_snmp6_fail:
rc
=
-
ENOMEM
;
goto
out
;
}
int
ipv6_misc_proc_exit
(
void
)
{
proc_net_remove
(
"sockstat6"
);
proc_net_remove
(
"dev_snmp6"
);
proc_net_remove
(
"snmp6"
);
return
0
;
}
net/ipv6/raw.c
View file @
f110e985
...
...
@@ -1058,6 +1058,6 @@ int __init raw6_proc_init(void)
void
raw6_proc_exit
(
void
)
{
remove_proc_entry
(
"raw6"
,
proc_net
);
proc_net_remove
(
"raw6"
);
}
#endif
/* CONFIG_PROC_FS */
net/ipv6/route.c
View file @
f110e985
...
...
@@ -1931,7 +1931,7 @@ void ip6_route_cleanup(void)
{
#ifdef CONFIG_PROC_FS
proc_net_remove
(
"ipv6_route"
);
remove_proc_entry
(
"rt6_stats"
,
proc_net
);
proc_net_remove
(
"rt6_stats"
);
#endif
xfrm6_fini
();
rt6_ifdown
(
NULL
);
...
...
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