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
104c7aaa
Commit
104c7aaa
authored
Feb 22, 2004
by
Alexander Viro
Committed by
David S. Miller
Feb 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4/IPV6]: Convert tunnel drivers to unconditional module_init.
parent
22a4bcc2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
39 deletions
+4
-39
include/net/ip6_tunnel.h
include/net/ip6_tunnel.h
+0
-6
include/net/ipip.h
include/net/ipip.h
+0
-2
net/ipv4/af_inet.c
net/ipv4/af_inet.c
+0
-10
net/ipv4/ip_gre.c
net/ipv4/ip_gre.c
+1
-3
net/ipv4/ipip.c
net/ipv4/ipip.c
+1
-3
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+0
-11
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_tunnel.c
+2
-4
No files found.
include/net/ip6_tunnel.h
View file @
104c7aaa
...
...
@@ -37,10 +37,4 @@ struct ipv6_tlv_tnl_enc_lim {
__u8
encap_limit
;
/* tunnel encapsulation limit */
}
__attribute__
((
packed
));
#ifdef __KERNEL__
#ifdef CONFIG_IPV6_TUNNEL
extern
int
__init
ip6_tunnel_init
(
void
);
extern
void
ip6_tunnel_cleanup
(
void
);
#endif
#endif
#endif
include/net/ipip.h
View file @
104c7aaa
...
...
@@ -45,8 +45,6 @@ struct ip_tunnel
} while (0)
extern
int
ipip_init
(
void
);
extern
int
ipgre_init
(
void
);
extern
int
sit_init
(
void
);
extern
void
sit_cleanup
(
void
);
...
...
net/ipv4/af_inet.c
View file @
104c7aaa
...
...
@@ -1167,16 +1167,6 @@ static int __init inet_init(void)
icmp_init
(
&
inet_family_ops
);
/* I wish inet_add_protocol had no constructor hook...
I had to move IPIP from net/ipv4/protocol.c :-( --ANK
*/
#ifdef CONFIG_NET_IPIP
ipip_init
();
#endif
#ifdef CONFIG_NET_IPGRE
ipgre_init
();
#endif
/*
* Initialise the multicast router
*/
...
...
net/ipv4/ip_gre.c
View file @
104c7aaa
...
...
@@ -1250,7 +1250,7 @@ static struct inet_protocol ipgre_protocol = {
* And now the modules code and kernel interface.
*/
int
__init
ipgre_init
(
void
)
static
int
__init
ipgre_init
(
void
)
{
int
err
=
-
EINVAL
;
...
...
@@ -1288,8 +1288,6 @@ void ipgre_fini(void)
unregister_netdev
(
ipgre_fb_tunnel_dev
);
}
#ifdef MODULE
module_init
(
ipgre_init
);
#endif
module_exit
(
ipgre_fini
);
MODULE_LICENSE
(
"GPL"
);
net/ipv4/ipip.c
View file @
104c7aaa
...
...
@@ -872,7 +872,7 @@ static struct xfrm_tunnel ipip_handler = {
static
char
banner
[]
__initdata
=
KERN_INFO
"IPv4 over IPv4 tunneling driver
\n
"
;
int
__init
ipip_init
(
void
)
static
int
__init
ipip_init
(
void
)
{
int
err
;
...
...
@@ -911,8 +911,6 @@ static void __exit ipip_fini(void)
unregister_netdev
(
ipip_fb_tunnel_dev
);
}
#ifdef MODULE
module_init
(
ipip_init
);
#endif
module_exit
(
ipip_fini
);
MODULE_LICENSE
(
"GPL"
);
net/ipv6/af_inet6.c
View file @
104c7aaa
...
...
@@ -788,11 +788,6 @@ static int __init inet6_init(void)
err
=
ndisc_init
(
&
inet6_family_ops
);
if
(
err
)
goto
ndisc_fail
;
#ifdef CONFIG_IPV6_TUNNEL
err
=
ip6_tunnel_init
();
if
(
err
)
goto
ip6_tunnel_fail
;
#endif
err
=
igmp6_init
(
&
inet6_family_ops
);
if
(
err
)
goto
igmp_fail
;
...
...
@@ -846,9 +841,6 @@ static int __init inet6_init(void)
igmp6_cleanup
();
#endif
igmp_fail:
#ifdef CONFIG_IPV6_TUNNEL
ip6_tunnel_cleanup
();
ip6_tunnel_fail:
#endif
ndisc_cleanup
();
ndisc_fail:
...
...
@@ -882,9 +874,6 @@ static void __exit inet6_exit(void)
ip6_route_cleanup
();
ipv6_packet_cleanup
();
igmp6_cleanup
();
#ifdef CONFIG_IPV6_TUNNEL
ip6_tunnel_cleanup
();
#endif
ndisc_cleanup
();
icmpv6_cleanup
();
#ifdef CONFIG_SYSCTL
...
...
net/ipv6/ip6_tunnel.c
View file @
104c7aaa
...
...
@@ -1100,7 +1100,7 @@ static struct inet6_protocol ip6ip6_protocol = {
* Return: 0 on success
**/
int
__init
ip6_tunnel_init
(
void
)
static
int
__init
ip6_tunnel_init
(
void
)
{
int
err
;
...
...
@@ -1131,13 +1131,11 @@ int __init ip6_tunnel_init(void)
* ip6_tunnel_cleanup - free resources and unregister protocol
**/
void
ip6_tunnel_cleanup
(
void
)
static
void
__exit
ip6_tunnel_cleanup
(
void
)
{
unregister_netdev
(
ip6ip6_fb_tnl_dev
);
inet6_del_protocol
(
&
ip6ip6_protocol
,
IPPROTO_IPV6
);
}
#ifdef MODULE
module_init
(
ip6_tunnel_init
);
module_exit
(
ip6_tunnel_cleanup
);
#endif
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