diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/Makefile | 5 | ||||
-rw-r--r-- | net/ipv6/netfilter.c | 19 |
2 files changed, 4 insertions, 20 deletions
diff --git a/net/ipv6/Makefile b/net/ipv6/Makefile index 9601fd7f9d66..bf18cff13120 100644 --- a/net/ipv6/Makefile +++ b/net/ipv6/Makefile | |||
@@ -8,8 +8,7 @@ ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o sit.o \ | |||
8 | route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o raw.o \ | 8 | route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o raw.o \ |
9 | protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \ | 9 | protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \ |
10 | exthdrs.o sysctl_net_ipv6.o datagram.o proc.o \ | 10 | exthdrs.o sysctl_net_ipv6.o datagram.o proc.o \ |
11 | ip6_flowlabel.o ipv6_syms.o netfilter.o \ | 11 | ip6_flowlabel.o ipv6_syms.o inet6_connection_sock.o |
12 | inet6_connection_sock.o | ||
13 | 12 | ||
14 | ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ | 13 | ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ |
15 | xfrm6_output.o | 14 | xfrm6_output.o |
@@ -19,7 +18,7 @@ obj-$(CONFIG_INET6_AH) += ah6.o | |||
19 | obj-$(CONFIG_INET6_ESP) += esp6.o | 18 | obj-$(CONFIG_INET6_ESP) += esp6.o |
20 | obj-$(CONFIG_INET6_IPCOMP) += ipcomp6.o | 19 | obj-$(CONFIG_INET6_IPCOMP) += ipcomp6.o |
21 | obj-$(CONFIG_INET6_TUNNEL) += xfrm6_tunnel.o | 20 | obj-$(CONFIG_INET6_TUNNEL) += xfrm6_tunnel.o |
22 | obj-$(CONFIG_NETFILTER) += netfilter/ | 21 | obj-$(CONFIG_NETFILTER) += netfilter.o netfilter/ |
23 | 22 | ||
24 | obj-$(CONFIG_IPV6_TUNNEL) += ip6_tunnel.o | 23 | obj-$(CONFIG_IPV6_TUNNEL) += ip6_tunnel.o |
25 | 24 | ||
diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c index b63678328a3b..1ab62f033664 100644 --- a/net/ipv6/netfilter.c +++ b/net/ipv6/netfilter.c | |||
@@ -1,9 +1,5 @@ | |||
1 | #include <linux/config.h> | ||
2 | #include <linux/init.h> | ||
3 | |||
4 | #ifdef CONFIG_NETFILTER | ||
5 | |||
6 | #include <linux/kernel.h> | 1 | #include <linux/kernel.h> |
2 | #include <linux/init.h> | ||
7 | #include <linux/ipv6.h> | 3 | #include <linux/ipv6.h> |
8 | #include <linux/netfilter.h> | 4 | #include <linux/netfilter.h> |
9 | #include <linux/netfilter_ipv6.h> | 5 | #include <linux/netfilter_ipv6.h> |
@@ -94,18 +90,7 @@ int __init ipv6_netfilter_init(void) | |||
94 | return nf_register_queue_rerouter(PF_INET6, &ip6_reroute); | 90 | return nf_register_queue_rerouter(PF_INET6, &ip6_reroute); |
95 | } | 91 | } |
96 | 92 | ||
97 | void ipv6_netfilter_fini(void) | 93 | void __exit ipv6_netfilter_fini(void) |
98 | { | 94 | { |
99 | nf_unregister_queue_rerouter(PF_INET6); | 95 | nf_unregister_queue_rerouter(PF_INET6); |
100 | } | 96 | } |
101 | |||
102 | #else /* CONFIG_NETFILTER */ | ||
103 | int __init ipv6_netfilter_init(void) | ||
104 | { | ||
105 | return 0; | ||
106 | } | ||
107 | |||
108 | void ipv6_netfilter_fini(void) | ||
109 | { | ||
110 | } | ||
111 | #endif /* CONFIG_NETFILTER */ | ||