diff options
Diffstat (limited to 'net/netfilter')
28 files changed, 113 insertions, 113 deletions
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c index cd191b0d4ac7..e38a4b5a3089 100644 --- a/net/netfilter/nf_conntrack_ftp.c +++ b/net/netfilter/nf_conntrack_ftp.c | |||
@@ -624,7 +624,7 @@ static struct nf_conntrack_helper ftp[MAX_PORTS][2]; | |||
624 | static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")]; | 624 | static char ftp_names[MAX_PORTS][2][sizeof("ftp-65535")]; |
625 | 625 | ||
626 | /* don't make this __exit, since it's called from __init ! */ | 626 | /* don't make this __exit, since it's called from __init ! */ |
627 | static void fini(void) | 627 | static void nf_conntrack_ftp_fini(void) |
628 | { | 628 | { |
629 | int i, j; | 629 | int i, j; |
630 | for (i = 0; i < ports_c; i++) { | 630 | for (i = 0; i < ports_c; i++) { |
@@ -642,7 +642,7 @@ static void fini(void) | |||
642 | kfree(ftp_buffer); | 642 | kfree(ftp_buffer); |
643 | } | 643 | } |
644 | 644 | ||
645 | static int __init init(void) | 645 | static int __init nf_conntrack_ftp_init(void) |
646 | { | 646 | { |
647 | int i, j = -1, ret = 0; | 647 | int i, j = -1, ret = 0; |
648 | char *tmpname; | 648 | char *tmpname; |
@@ -683,7 +683,7 @@ static int __init init(void) | |||
683 | printk("nf_ct_ftp: failed to register helper " | 683 | printk("nf_ct_ftp: failed to register helper " |
684 | " for pf: %d port: %d\n", | 684 | " for pf: %d port: %d\n", |
685 | ftp[i][j].tuple.src.l3num, ports[i]); | 685 | ftp[i][j].tuple.src.l3num, ports[i]); |
686 | fini(); | 686 | nf_conntrack_ftp_fini(); |
687 | return ret; | 687 | return ret; |
688 | } | 688 | } |
689 | } | 689 | } |
@@ -692,5 +692,5 @@ static int __init init(void) | |||
692 | return 0; | 692 | return 0; |
693 | } | 693 | } |
694 | 694 | ||
695 | module_init(init); | 695 | module_init(nf_conntrack_ftp_init); |
696 | module_exit(fini); | 696 | module_exit(nf_conntrack_ftp_fini); |
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index cf798e61e379..9cccc325b687 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c | |||
@@ -615,7 +615,7 @@ static ctl_table nf_ct_net_table[] = { | |||
615 | static struct ctl_table_header *nf_ct_sysctl_header; | 615 | static struct ctl_table_header *nf_ct_sysctl_header; |
616 | #endif | 616 | #endif |
617 | 617 | ||
618 | int __init init(void) | 618 | int __init nf_conntrack_proto_sctp_init(void) |
619 | { | 619 | { |
620 | int ret; | 620 | int ret; |
621 | 621 | ||
@@ -652,7 +652,7 @@ int __init init(void) | |||
652 | return ret; | 652 | return ret; |
653 | } | 653 | } |
654 | 654 | ||
655 | void __exit fini(void) | 655 | void __exit nf_conntrack_proto_sctp_fini(void) |
656 | { | 656 | { |
657 | nf_conntrack_protocol_unregister(&nf_conntrack_protocol_sctp6); | 657 | nf_conntrack_protocol_unregister(&nf_conntrack_protocol_sctp6); |
658 | nf_conntrack_protocol_unregister(&nf_conntrack_protocol_sctp4); | 658 | nf_conntrack_protocol_unregister(&nf_conntrack_protocol_sctp4); |
@@ -662,8 +662,8 @@ void __exit fini(void) | |||
662 | DEBUGP("SCTP conntrack module unloaded\n"); | 662 | DEBUGP("SCTP conntrack module unloaded\n"); |
663 | } | 663 | } |
664 | 664 | ||
665 | module_init(init); | 665 | module_init(nf_conntrack_proto_sctp_init); |
666 | module_exit(fini); | 666 | module_exit(nf_conntrack_proto_sctp_fini); |
667 | 667 | ||
668 | MODULE_LICENSE("GPL"); | 668 | MODULE_LICENSE("GPL"); |
669 | MODULE_AUTHOR("Kiran Kumar Immidi"); | 669 | MODULE_AUTHOR("Kiran Kumar Immidi"); |
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 75577e175b35..c72aa3cd22e4 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -806,18 +806,18 @@ void nf_conntrack_protocol_unregister(struct nf_conntrack_protocol *proto) | |||
806 | nf_ct_iterate_cleanup(kill_proto, proto); | 806 | nf_ct_iterate_cleanup(kill_proto, proto); |
807 | } | 807 | } |
808 | 808 | ||
809 | static int __init init(void) | 809 | static int __init nf_conntrack_standalone_init(void) |
810 | { | 810 | { |
811 | return init_or_cleanup(1); | 811 | return init_or_cleanup(1); |
812 | } | 812 | } |
813 | 813 | ||
814 | static void __exit fini(void) | 814 | static void __exit nf_conntrack_standalone_fini(void) |
815 | { | 815 | { |
816 | init_or_cleanup(0); | 816 | init_or_cleanup(0); |
817 | } | 817 | } |
818 | 818 | ||
819 | module_init(init); | 819 | module_init(nf_conntrack_standalone_init); |
820 | module_exit(fini); | 820 | module_exit(nf_conntrack_standalone_fini); |
821 | 821 | ||
822 | /* Some modules need us, but don't depend directly on any symbol. | 822 | /* Some modules need us, but don't depend directly on any symbol. |
823 | They should call this. */ | 823 | They should call this. */ |
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 54cbbaa712dc..3e3f5448bacb 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -1081,13 +1081,13 @@ cleanup_netlink_notifier: | |||
1081 | return status; | 1081 | return status; |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | static int __init init(void) | 1084 | static int __init nfnetlink_log_init(void) |
1085 | { | 1085 | { |
1086 | 1086 | ||
1087 | return init_or_cleanup(1); | 1087 | return init_or_cleanup(1); |
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | static void __exit fini(void) | 1090 | static void __exit nfnetlink_log_fini(void) |
1091 | { | 1091 | { |
1092 | init_or_cleanup(0); | 1092 | init_or_cleanup(0); |
1093 | } | 1093 | } |
@@ -1097,5 +1097,5 @@ MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>"); | |||
1097 | MODULE_LICENSE("GPL"); | 1097 | MODULE_LICENSE("GPL"); |
1098 | MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_ULOG); | 1098 | MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_ULOG); |
1099 | 1099 | ||
1100 | module_init(init); | 1100 | module_init(nfnetlink_log_init); |
1101 | module_exit(fini); | 1101 | module_exit(nfnetlink_log_fini); |
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index b5701662182e..d0e62f68139f 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -1117,13 +1117,13 @@ cleanup_netlink_notifier: | |||
1117 | return status; | 1117 | return status; |
1118 | } | 1118 | } |
1119 | 1119 | ||
1120 | static int __init init(void) | 1120 | static int __init nfnetlink_queue_init(void) |
1121 | { | 1121 | { |
1122 | 1122 | ||
1123 | return init_or_cleanup(1); | 1123 | return init_or_cleanup(1); |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | static void __exit fini(void) | 1126 | static void __exit nfnetlink_queue_fini(void) |
1127 | { | 1127 | { |
1128 | init_or_cleanup(0); | 1128 | init_or_cleanup(0); |
1129 | } | 1129 | } |
@@ -1133,5 +1133,5 @@ MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>"); | |||
1133 | MODULE_LICENSE("GPL"); | 1133 | MODULE_LICENSE("GPL"); |
1134 | MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_QUEUE); | 1134 | MODULE_ALIAS_NFNL_SUBSYS(NFNL_SUBSYS_QUEUE); |
1135 | 1135 | ||
1136 | module_init(init); | 1136 | module_init(nfnetlink_queue_init); |
1137 | module_exit(fini); | 1137 | module_exit(nfnetlink_queue_fini); |
diff --git a/net/netfilter/xt_CLASSIFY.c b/net/netfilter/xt_CLASSIFY.c index 3cd2ac90a25b..e54e57730012 100644 --- a/net/netfilter/xt_CLASSIFY.c +++ b/net/netfilter/xt_CLASSIFY.c | |||
@@ -62,7 +62,7 @@ static struct xt_target classify6_reg = { | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | 64 | ||
65 | static int __init init(void) | 65 | static int __init xt_classify_init(void) |
66 | { | 66 | { |
67 | int ret; | 67 | int ret; |
68 | 68 | ||
@@ -77,11 +77,11 @@ static int __init init(void) | |||
77 | return ret; | 77 | return ret; |
78 | } | 78 | } |
79 | 79 | ||
80 | static void __exit fini(void) | 80 | static void __exit xt_classify_fini(void) |
81 | { | 81 | { |
82 | xt_unregister_target(&classify_reg); | 82 | xt_unregister_target(&classify_reg); |
83 | xt_unregister_target(&classify6_reg); | 83 | xt_unregister_target(&classify6_reg); |
84 | } | 84 | } |
85 | 85 | ||
86 | module_init(init); | 86 | module_init(xt_classify_init); |
87 | module_exit(fini); | 87 | module_exit(xt_classify_fini); |
diff --git a/net/netfilter/xt_CONNMARK.c b/net/netfilter/xt_CONNMARK.c index 35448b8e6883..60c375d36f01 100644 --- a/net/netfilter/xt_CONNMARK.c +++ b/net/netfilter/xt_CONNMARK.c | |||
@@ -115,7 +115,7 @@ static struct xt_target connmark6_reg = { | |||
115 | .me = THIS_MODULE | 115 | .me = THIS_MODULE |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static int __init init(void) | 118 | static int __init xt_connmark_init(void) |
119 | { | 119 | { |
120 | int ret; | 120 | int ret; |
121 | 121 | ||
@@ -132,11 +132,11 @@ static int __init init(void) | |||
132 | return ret; | 132 | return ret; |
133 | } | 133 | } |
134 | 134 | ||
135 | static void __exit fini(void) | 135 | static void __exit xt_connmark_fini(void) |
136 | { | 136 | { |
137 | xt_unregister_target(&connmark_reg); | 137 | xt_unregister_target(&connmark_reg); |
138 | xt_unregister_target(&connmark6_reg); | 138 | xt_unregister_target(&connmark6_reg); |
139 | } | 139 | } |
140 | 140 | ||
141 | module_init(init); | 141 | module_init(xt_connmark_init); |
142 | module_exit(fini); | 142 | module_exit(xt_connmark_fini); |
diff --git a/net/netfilter/xt_MARK.c b/net/netfilter/xt_MARK.c index 73bdd5c80e17..ee9c34edc76c 100644 --- a/net/netfilter/xt_MARK.c +++ b/net/netfilter/xt_MARK.c | |||
@@ -145,7 +145,7 @@ static struct xt_target ip6t_mark_reg_v0 = { | |||
145 | .revision = 0, | 145 | .revision = 0, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | static int __init init(void) | 148 | static int __init xt_mark_init(void) |
149 | { | 149 | { |
150 | int err; | 150 | int err; |
151 | 151 | ||
@@ -166,12 +166,12 @@ static int __init init(void) | |||
166 | return err; | 166 | return err; |
167 | } | 167 | } |
168 | 168 | ||
169 | static void __exit fini(void) | 169 | static void __exit xt_mark_fini(void) |
170 | { | 170 | { |
171 | xt_unregister_target(&ipt_mark_reg_v0); | 171 | xt_unregister_target(&ipt_mark_reg_v0); |
172 | xt_unregister_target(&ipt_mark_reg_v1); | 172 | xt_unregister_target(&ipt_mark_reg_v1); |
173 | xt_unregister_target(&ip6t_mark_reg_v0); | 173 | xt_unregister_target(&ip6t_mark_reg_v0); |
174 | } | 174 | } |
175 | 175 | ||
176 | module_init(init); | 176 | module_init(xt_mark_init); |
177 | module_exit(fini); | 177 | module_exit(xt_mark_fini); |
diff --git a/net/netfilter/xt_NFQUEUE.c b/net/netfilter/xt_NFQUEUE.c index 2873e1c60f68..86ccceb61fdd 100644 --- a/net/netfilter/xt_NFQUEUE.c +++ b/net/netfilter/xt_NFQUEUE.c | |||
@@ -61,7 +61,7 @@ static struct xt_target arpt_NFQ_reg = { | |||
61 | .me = THIS_MODULE, | 61 | .me = THIS_MODULE, |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static int __init init(void) | 64 | static int __init xt_nfqueue_init(void) |
65 | { | 65 | { |
66 | int ret; | 66 | int ret; |
67 | ret = xt_register_target(&ipt_NFQ_reg); | 67 | ret = xt_register_target(&ipt_NFQ_reg); |
@@ -83,12 +83,12 @@ out_ip: | |||
83 | return ret; | 83 | return ret; |
84 | } | 84 | } |
85 | 85 | ||
86 | static void __exit fini(void) | 86 | static void __exit xt_nfqueue_fini(void) |
87 | { | 87 | { |
88 | xt_unregister_target(&arpt_NFQ_reg); | 88 | xt_unregister_target(&arpt_NFQ_reg); |
89 | xt_unregister_target(&ip6t_NFQ_reg); | 89 | xt_unregister_target(&ip6t_NFQ_reg); |
90 | xt_unregister_target(&ipt_NFQ_reg); | 90 | xt_unregister_target(&ipt_NFQ_reg); |
91 | } | 91 | } |
92 | 92 | ||
93 | module_init(init); | 93 | module_init(xt_nfqueue_init); |
94 | module_exit(fini); | 94 | module_exit(xt_nfqueue_fini); |
diff --git a/net/netfilter/xt_NOTRACK.c b/net/netfilter/xt_NOTRACK.c index cf2ebd76fd6f..98f4b5363ce8 100644 --- a/net/netfilter/xt_NOTRACK.c +++ b/net/netfilter/xt_NOTRACK.c | |||
@@ -52,7 +52,7 @@ static struct xt_target notrack6_reg = { | |||
52 | .me = THIS_MODULE, | 52 | .me = THIS_MODULE, |
53 | }; | 53 | }; |
54 | 54 | ||
55 | static int __init init(void) | 55 | static int __init xt_notrack_init(void) |
56 | { | 56 | { |
57 | int ret; | 57 | int ret; |
58 | 58 | ||
@@ -67,11 +67,11 @@ static int __init init(void) | |||
67 | return ret; | 67 | return ret; |
68 | } | 68 | } |
69 | 69 | ||
70 | static void __exit fini(void) | 70 | static void __exit xt_notrack_fini(void) |
71 | { | 71 | { |
72 | xt_unregister_target(¬rack6_reg); | 72 | xt_unregister_target(¬rack6_reg); |
73 | xt_unregister_target(¬rack_reg); | 73 | xt_unregister_target(¬rack_reg); |
74 | } | 74 | } |
75 | 75 | ||
76 | module_init(init); | 76 | module_init(xt_notrack_init); |
77 | module_exit(fini); | 77 | module_exit(xt_notrack_fini); |
diff --git a/net/netfilter/xt_comment.c b/net/netfilter/xt_comment.c index 2637724b498d..197609cb06d7 100644 --- a/net/netfilter/xt_comment.c +++ b/net/netfilter/xt_comment.c | |||
@@ -45,7 +45,7 @@ static struct xt_match comment6_match = { | |||
45 | .me = THIS_MODULE | 45 | .me = THIS_MODULE |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static int __init init(void) | 48 | static int __init xt_comment_init(void) |
49 | { | 49 | { |
50 | int ret; | 50 | int ret; |
51 | 51 | ||
@@ -60,11 +60,11 @@ static int __init init(void) | |||
60 | return ret; | 60 | return ret; |
61 | } | 61 | } |
62 | 62 | ||
63 | static void __exit fini(void) | 63 | static void __exit xt_comment_fini(void) |
64 | { | 64 | { |
65 | xt_unregister_match(&comment_match); | 65 | xt_unregister_match(&comment_match); |
66 | xt_unregister_match(&comment6_match); | 66 | xt_unregister_match(&comment6_match); |
67 | } | 67 | } |
68 | 68 | ||
69 | module_init(init); | 69 | module_init(xt_comment_init); |
70 | module_exit(fini); | 70 | module_exit(xt_comment_fini); |
diff --git a/net/netfilter/xt_connbytes.c b/net/netfilter/xt_connbytes.c index 4985f5ec58ca..1396fe2d07c1 100644 --- a/net/netfilter/xt_connbytes.c +++ b/net/netfilter/xt_connbytes.c | |||
@@ -160,7 +160,7 @@ static struct xt_match connbytes6_match = { | |||
160 | .me = THIS_MODULE | 160 | .me = THIS_MODULE |
161 | }; | 161 | }; |
162 | 162 | ||
163 | static int __init init(void) | 163 | static int __init xt_connbytes_init(void) |
164 | { | 164 | { |
165 | int ret; | 165 | int ret; |
166 | ret = xt_register_match(&connbytes_match); | 166 | ret = xt_register_match(&connbytes_match); |
@@ -173,11 +173,11 @@ static int __init init(void) | |||
173 | return ret; | 173 | return ret; |
174 | } | 174 | } |
175 | 175 | ||
176 | static void __exit fini(void) | 176 | static void __exit xt_connbytes_fini(void) |
177 | { | 177 | { |
178 | xt_unregister_match(&connbytes_match); | 178 | xt_unregister_match(&connbytes_match); |
179 | xt_unregister_match(&connbytes6_match); | 179 | xt_unregister_match(&connbytes6_match); |
180 | } | 180 | } |
181 | 181 | ||
182 | module_init(init); | 182 | module_init(xt_connbytes_init); |
183 | module_exit(fini); | 183 | module_exit(xt_connbytes_fini); |
diff --git a/net/netfilter/xt_connmark.c b/net/netfilter/xt_connmark.c index 7b16f1ee16b4..dc26a27cbcaf 100644 --- a/net/netfilter/xt_connmark.c +++ b/net/netfilter/xt_connmark.c | |||
@@ -102,7 +102,7 @@ static struct xt_match connmark6_match = { | |||
102 | .me = THIS_MODULE | 102 | .me = THIS_MODULE |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static int __init init(void) | 105 | static int __init xt_connmark_init(void) |
106 | { | 106 | { |
107 | int ret; | 107 | int ret; |
108 | 108 | ||
@@ -118,11 +118,11 @@ static int __init init(void) | |||
118 | return ret; | 118 | return ret; |
119 | } | 119 | } |
120 | 120 | ||
121 | static void __exit fini(void) | 121 | static void __exit xt_connmark_fini(void) |
122 | { | 122 | { |
123 | xt_unregister_match(&connmark6_match); | 123 | xt_unregister_match(&connmark6_match); |
124 | xt_unregister_match(&connmark_match); | 124 | xt_unregister_match(&connmark_match); |
125 | } | 125 | } |
126 | 126 | ||
127 | module_init(init); | 127 | module_init(xt_connmark_init); |
128 | module_exit(fini); | 128 | module_exit(xt_connmark_fini); |
diff --git a/net/netfilter/xt_conntrack.c b/net/netfilter/xt_conntrack.c index 65a84809fd30..145489a4c3f2 100644 --- a/net/netfilter/xt_conntrack.c +++ b/net/netfilter/xt_conntrack.c | |||
@@ -239,7 +239,7 @@ static struct xt_match conntrack_match = { | |||
239 | .me = THIS_MODULE, | 239 | .me = THIS_MODULE, |
240 | }; | 240 | }; |
241 | 241 | ||
242 | static int __init init(void) | 242 | static int __init xt_conntrack_init(void) |
243 | { | 243 | { |
244 | int ret; | 244 | int ret; |
245 | need_conntrack(); | 245 | need_conntrack(); |
@@ -248,10 +248,10 @@ static int __init init(void) | |||
248 | return ret; | 248 | return ret; |
249 | } | 249 | } |
250 | 250 | ||
251 | static void __exit fini(void) | 251 | static void __exit xt_conntrack_fini(void) |
252 | { | 252 | { |
253 | xt_unregister_match(&conntrack_match); | 253 | xt_unregister_match(&conntrack_match); |
254 | } | 254 | } |
255 | 255 | ||
256 | module_init(init); | 256 | module_init(xt_conntrack_init); |
257 | module_exit(fini); | 257 | module_exit(xt_conntrack_fini); |
diff --git a/net/netfilter/xt_dccp.c b/net/netfilter/xt_dccp.c index 2f331decd151..dfb10b648e57 100644 --- a/net/netfilter/xt_dccp.c +++ b/net/netfilter/xt_dccp.c | |||
@@ -164,7 +164,7 @@ static struct xt_match dccp6_match = | |||
164 | }; | 164 | }; |
165 | 165 | ||
166 | 166 | ||
167 | static int __init init(void) | 167 | static int __init xt_dccp_init(void) |
168 | { | 168 | { |
169 | int ret; | 169 | int ret; |
170 | 170 | ||
@@ -191,12 +191,12 @@ out_kfree: | |||
191 | return ret; | 191 | return ret; |
192 | } | 192 | } |
193 | 193 | ||
194 | static void __exit fini(void) | 194 | static void __exit xt_dccp_fini(void) |
195 | { | 195 | { |
196 | xt_unregister_match(&dccp6_match); | 196 | xt_unregister_match(&dccp6_match); |
197 | xt_unregister_match(&dccp_match); | 197 | xt_unregister_match(&dccp_match); |
198 | kfree(dccp_optbuf); | 198 | kfree(dccp_optbuf); |
199 | } | 199 | } |
200 | 200 | ||
201 | module_init(init); | 201 | module_init(xt_dccp_init); |
202 | module_exit(fini); | 202 | module_exit(xt_dccp_fini); |
diff --git a/net/netfilter/xt_helper.c b/net/netfilter/xt_helper.c index 101f0005e987..799c2a43e3b9 100644 --- a/net/netfilter/xt_helper.c +++ b/net/netfilter/xt_helper.c | |||
@@ -182,7 +182,7 @@ static struct xt_match helper6_match = { | |||
182 | .me = THIS_MODULE, | 182 | .me = THIS_MODULE, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | static int __init init(void) | 185 | static int __init xt_helper_init(void) |
186 | { | 186 | { |
187 | int ret; | 187 | int ret; |
188 | need_conntrack(); | 188 | need_conntrack(); |
@@ -198,12 +198,12 @@ static int __init init(void) | |||
198 | return ret; | 198 | return ret; |
199 | } | 199 | } |
200 | 200 | ||
201 | static void __exit fini(void) | 201 | static void __exit xt_helper_fini(void) |
202 | { | 202 | { |
203 | xt_unregister_match(&helper_match); | 203 | xt_unregister_match(&helper_match); |
204 | xt_unregister_match(&helper6_match); | 204 | xt_unregister_match(&helper6_match); |
205 | } | 205 | } |
206 | 206 | ||
207 | module_init(init); | 207 | module_init(xt_helper_init); |
208 | module_exit(fini); | 208 | module_exit(xt_helper_fini); |
209 | 209 | ||
diff --git a/net/netfilter/xt_length.c b/net/netfilter/xt_length.c index 38560caef757..109132c9a146 100644 --- a/net/netfilter/xt_length.c +++ b/net/netfilter/xt_length.c | |||
@@ -68,7 +68,7 @@ static struct xt_match length6_match = { | |||
68 | .me = THIS_MODULE, | 68 | .me = THIS_MODULE, |
69 | }; | 69 | }; |
70 | 70 | ||
71 | static int __init init(void) | 71 | static int __init xt_length_init(void) |
72 | { | 72 | { |
73 | int ret; | 73 | int ret; |
74 | ret = xt_register_match(&length_match); | 74 | ret = xt_register_match(&length_match); |
@@ -81,11 +81,11 @@ static int __init init(void) | |||
81 | return ret; | 81 | return ret; |
82 | } | 82 | } |
83 | 83 | ||
84 | static void __exit fini(void) | 84 | static void __exit xt_length_fini(void) |
85 | { | 85 | { |
86 | xt_unregister_match(&length_match); | 86 | xt_unregister_match(&length_match); |
87 | xt_unregister_match(&length6_match); | 87 | xt_unregister_match(&length6_match); |
88 | } | 88 | } |
89 | 89 | ||
90 | module_init(init); | 90 | module_init(xt_length_init); |
91 | module_exit(fini); | 91 | module_exit(xt_length_fini); |
diff --git a/net/netfilter/xt_limit.c b/net/netfilter/xt_limit.c index e91c1a444e77..ce7fdb7e4e07 100644 --- a/net/netfilter/xt_limit.c +++ b/net/netfilter/xt_limit.c | |||
@@ -153,7 +153,7 @@ static struct xt_match limit6_reg = { | |||
153 | .me = THIS_MODULE, | 153 | .me = THIS_MODULE, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | static int __init init(void) | 156 | static int __init xt_limit_init(void) |
157 | { | 157 | { |
158 | int ret; | 158 | int ret; |
159 | 159 | ||
@@ -168,11 +168,11 @@ static int __init init(void) | |||
168 | return ret; | 168 | return ret; |
169 | } | 169 | } |
170 | 170 | ||
171 | static void __exit fini(void) | 171 | static void __exit xt_limit_fini(void) |
172 | { | 172 | { |
173 | xt_unregister_match(&ipt_limit_reg); | 173 | xt_unregister_match(&ipt_limit_reg); |
174 | xt_unregister_match(&limit6_reg); | 174 | xt_unregister_match(&limit6_reg); |
175 | } | 175 | } |
176 | 176 | ||
177 | module_init(init); | 177 | module_init(xt_limit_init); |
178 | module_exit(fini); | 178 | module_exit(xt_limit_fini); |
diff --git a/net/netfilter/xt_mac.c b/net/netfilter/xt_mac.c index f4defa28a6ec..356290ffe386 100644 --- a/net/netfilter/xt_mac.c +++ b/net/netfilter/xt_mac.c | |||
@@ -62,7 +62,7 @@ static struct xt_match mac6_match = { | |||
62 | .me = THIS_MODULE, | 62 | .me = THIS_MODULE, |
63 | }; | 63 | }; |
64 | 64 | ||
65 | static int __init init(void) | 65 | static int __init xt_mac_init(void) |
66 | { | 66 | { |
67 | int ret; | 67 | int ret; |
68 | ret = xt_register_match(&mac_match); | 68 | ret = xt_register_match(&mac_match); |
@@ -76,11 +76,11 @@ static int __init init(void) | |||
76 | return ret; | 76 | return ret; |
77 | } | 77 | } |
78 | 78 | ||
79 | static void __exit fini(void) | 79 | static void __exit xt_mac_fini(void) |
80 | { | 80 | { |
81 | xt_unregister_match(&mac_match); | 81 | xt_unregister_match(&mac_match); |
82 | xt_unregister_match(&mac6_match); | 82 | xt_unregister_match(&mac6_match); |
83 | } | 83 | } |
84 | 84 | ||
85 | module_init(init); | 85 | module_init(xt_mac_init); |
86 | module_exit(fini); | 86 | module_exit(xt_mac_fini); |
diff --git a/net/netfilter/xt_mark.c b/net/netfilter/xt_mark.c index ce0badfeef9a..8b385a34886d 100644 --- a/net/netfilter/xt_mark.c +++ b/net/netfilter/xt_mark.c | |||
@@ -69,7 +69,7 @@ static struct xt_match mark6_match = { | |||
69 | .me = THIS_MODULE, | 69 | .me = THIS_MODULE, |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static int __init init(void) | 72 | static int __init xt_mark_init(void) |
73 | { | 73 | { |
74 | int ret; | 74 | int ret; |
75 | ret = xt_register_match(&mark_match); | 75 | ret = xt_register_match(&mark_match); |
@@ -83,11 +83,11 @@ static int __init init(void) | |||
83 | return ret; | 83 | return ret; |
84 | } | 84 | } |
85 | 85 | ||
86 | static void __exit fini(void) | 86 | static void __exit xt_mark_fini(void) |
87 | { | 87 | { |
88 | xt_unregister_match(&mark_match); | 88 | xt_unregister_match(&mark_match); |
89 | xt_unregister_match(&mark6_match); | 89 | xt_unregister_match(&mark6_match); |
90 | } | 90 | } |
91 | 91 | ||
92 | module_init(init); | 92 | module_init(xt_mark_init); |
93 | module_exit(fini); | 93 | module_exit(xt_mark_fini); |
diff --git a/net/netfilter/xt_physdev.c b/net/netfilter/xt_physdev.c index 089f4f7e8636..5fe4c9df17f5 100644 --- a/net/netfilter/xt_physdev.c +++ b/net/netfilter/xt_physdev.c | |||
@@ -134,7 +134,7 @@ static struct xt_match physdev6_match = { | |||
134 | .me = THIS_MODULE, | 134 | .me = THIS_MODULE, |
135 | }; | 135 | }; |
136 | 136 | ||
137 | static int __init init(void) | 137 | static int __init xt_physdev_init(void) |
138 | { | 138 | { |
139 | int ret; | 139 | int ret; |
140 | 140 | ||
@@ -149,11 +149,11 @@ static int __init init(void) | |||
149 | return ret; | 149 | return ret; |
150 | } | 150 | } |
151 | 151 | ||
152 | static void __exit fini(void) | 152 | static void __exit xt_physdev_fini(void) |
153 | { | 153 | { |
154 | xt_unregister_match(&physdev_match); | 154 | xt_unregister_match(&physdev_match); |
155 | xt_unregister_match(&physdev6_match); | 155 | xt_unregister_match(&physdev6_match); |
156 | } | 156 | } |
157 | 157 | ||
158 | module_init(init); | 158 | module_init(xt_physdev_init); |
159 | module_exit(fini); | 159 | module_exit(xt_physdev_fini); |
diff --git a/net/netfilter/xt_pkttype.c b/net/netfilter/xt_pkttype.c index 8b8bca988ac6..3ac703b5cb8f 100644 --- a/net/netfilter/xt_pkttype.c +++ b/net/netfilter/xt_pkttype.c | |||
@@ -49,7 +49,7 @@ static struct xt_match pkttype6_match = { | |||
49 | .me = THIS_MODULE, | 49 | .me = THIS_MODULE, |
50 | }; | 50 | }; |
51 | 51 | ||
52 | static int __init init(void) | 52 | static int __init xt_pkttype_init(void) |
53 | { | 53 | { |
54 | int ret; | 54 | int ret; |
55 | ret = xt_register_match(&pkttype_match); | 55 | ret = xt_register_match(&pkttype_match); |
@@ -63,11 +63,11 @@ static int __init init(void) | |||
63 | return ret; | 63 | return ret; |
64 | } | 64 | } |
65 | 65 | ||
66 | static void __exit fini(void) | 66 | static void __exit xt_pkttype_fini(void) |
67 | { | 67 | { |
68 | xt_unregister_match(&pkttype_match); | 68 | xt_unregister_match(&pkttype_match); |
69 | xt_unregister_match(&pkttype6_match); | 69 | xt_unregister_match(&pkttype6_match); |
70 | } | 70 | } |
71 | 71 | ||
72 | module_init(init); | 72 | module_init(xt_pkttype_init); |
73 | module_exit(fini); | 73 | module_exit(xt_pkttype_fini); |
diff --git a/net/netfilter/xt_realm.c b/net/netfilter/xt_realm.c index 5e31a4a835bf..a80b7d132b65 100644 --- a/net/netfilter/xt_realm.c +++ b/net/netfilter/xt_realm.c | |||
@@ -49,15 +49,15 @@ static struct xt_match realm_match = { | |||
49 | .me = THIS_MODULE | 49 | .me = THIS_MODULE |
50 | }; | 50 | }; |
51 | 51 | ||
52 | static int __init init(void) | 52 | static int __init xt_realm_init(void) |
53 | { | 53 | { |
54 | return xt_register_match(&realm_match); | 54 | return xt_register_match(&realm_match); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void __exit fini(void) | 57 | static void __exit xt_realm_fini(void) |
58 | { | 58 | { |
59 | xt_unregister_match(&realm_match); | 59 | xt_unregister_match(&realm_match); |
60 | } | 60 | } |
61 | 61 | ||
62 | module_init(init); | 62 | module_init(xt_realm_init); |
63 | module_exit(fini); | 63 | module_exit(xt_realm_fini); |
diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c index c6eb24a2fe13..34bd87259a09 100644 --- a/net/netfilter/xt_sctp.c +++ b/net/netfilter/xt_sctp.c | |||
@@ -200,7 +200,7 @@ static struct xt_match sctp6_match = { | |||
200 | .me = THIS_MODULE | 200 | .me = THIS_MODULE |
201 | }; | 201 | }; |
202 | 202 | ||
203 | static int __init init(void) | 203 | static int __init xt_sctp_init(void) |
204 | { | 204 | { |
205 | int ret; | 205 | int ret; |
206 | ret = xt_register_match(&sctp_match); | 206 | ret = xt_register_match(&sctp_match); |
@@ -214,11 +214,11 @@ static int __init init(void) | |||
214 | return ret; | 214 | return ret; |
215 | } | 215 | } |
216 | 216 | ||
217 | static void __exit fini(void) | 217 | static void __exit xt_sctp_fini(void) |
218 | { | 218 | { |
219 | xt_unregister_match(&sctp6_match); | 219 | xt_unregister_match(&sctp6_match); |
220 | xt_unregister_match(&sctp_match); | 220 | xt_unregister_match(&sctp_match); |
221 | } | 221 | } |
222 | 222 | ||
223 | module_init(init); | 223 | module_init(xt_sctp_init); |
224 | module_exit(fini); | 224 | module_exit(xt_sctp_fini); |
diff --git a/net/netfilter/xt_state.c b/net/netfilter/xt_state.c index e6c0be9d94d2..f9e304dc4504 100644 --- a/net/netfilter/xt_state.c +++ b/net/netfilter/xt_state.c | |||
@@ -89,7 +89,7 @@ static struct xt_match state6_match = { | |||
89 | .me = THIS_MODULE, | 89 | .me = THIS_MODULE, |
90 | }; | 90 | }; |
91 | 91 | ||
92 | static int __init init(void) | 92 | static int __init xt_state_init(void) |
93 | { | 93 | { |
94 | int ret; | 94 | int ret; |
95 | 95 | ||
@@ -106,11 +106,11 @@ static int __init init(void) | |||
106 | return ret; | 106 | return ret; |
107 | } | 107 | } |
108 | 108 | ||
109 | static void __exit fini(void) | 109 | static void __exit xt_state_fini(void) |
110 | { | 110 | { |
111 | xt_unregister_match(&state_match); | 111 | xt_unregister_match(&state_match); |
112 | xt_unregister_match(&state6_match); | 112 | xt_unregister_match(&state6_match); |
113 | } | 113 | } |
114 | 114 | ||
115 | module_init(init); | 115 | module_init(xt_state_init); |
116 | module_exit(fini); | 116 | module_exit(xt_state_fini); |
diff --git a/net/netfilter/xt_string.c b/net/netfilter/xt_string.c index 703d80fccacf..79d9ea6964ba 100644 --- a/net/netfilter/xt_string.c +++ b/net/netfilter/xt_string.c | |||
@@ -91,7 +91,7 @@ static struct xt_match string6_match = { | |||
91 | .me = THIS_MODULE | 91 | .me = THIS_MODULE |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static int __init init(void) | 94 | static int __init xt_string_init(void) |
95 | { | 95 | { |
96 | int ret; | 96 | int ret; |
97 | 97 | ||
@@ -105,11 +105,11 @@ static int __init init(void) | |||
105 | return ret; | 105 | return ret; |
106 | } | 106 | } |
107 | 107 | ||
108 | static void __exit fini(void) | 108 | static void __exit xt_string_fini(void) |
109 | { | 109 | { |
110 | xt_unregister_match(&string_match); | 110 | xt_unregister_match(&string_match); |
111 | xt_unregister_match(&string6_match); | 111 | xt_unregister_match(&string6_match); |
112 | } | 112 | } |
113 | 113 | ||
114 | module_init(init); | 114 | module_init(xt_string_init); |
115 | module_exit(fini); | 115 | module_exit(xt_string_fini); |
diff --git a/net/netfilter/xt_tcpmss.c b/net/netfilter/xt_tcpmss.c index 70a8858ae3f1..cf7d335cadcd 100644 --- a/net/netfilter/xt_tcpmss.c +++ b/net/netfilter/xt_tcpmss.c | |||
@@ -112,7 +112,7 @@ static struct xt_match tcpmss6_match = { | |||
112 | }; | 112 | }; |
113 | 113 | ||
114 | 114 | ||
115 | static int __init init(void) | 115 | static int __init xt_tcpmss_init(void) |
116 | { | 116 | { |
117 | int ret; | 117 | int ret; |
118 | ret = xt_register_match(&tcpmss_match); | 118 | ret = xt_register_match(&tcpmss_match); |
@@ -126,11 +126,11 @@ static int __init init(void) | |||
126 | return ret; | 126 | return ret; |
127 | } | 127 | } |
128 | 128 | ||
129 | static void __exit fini(void) | 129 | static void __exit xt_tcpmss_fini(void) |
130 | { | 130 | { |
131 | xt_unregister_match(&tcpmss6_match); | 131 | xt_unregister_match(&tcpmss6_match); |
132 | xt_unregister_match(&tcpmss_match); | 132 | xt_unregister_match(&tcpmss_match); |
133 | } | 133 | } |
134 | 134 | ||
135 | module_init(init); | 135 | module_init(xt_tcpmss_init); |
136 | module_exit(fini); | 136 | module_exit(xt_tcpmss_fini); |
diff --git a/net/netfilter/xt_tcpudp.c b/net/netfilter/xt_tcpudp.c index 14a990eb666a..1b61dac9c873 100644 --- a/net/netfilter/xt_tcpudp.c +++ b/net/netfilter/xt_tcpudp.c | |||
@@ -238,7 +238,7 @@ static struct xt_match udp6_matchstruct = { | |||
238 | .me = THIS_MODULE, | 238 | .me = THIS_MODULE, |
239 | }; | 239 | }; |
240 | 240 | ||
241 | static int __init init(void) | 241 | static int __init xt_tcpudp_init(void) |
242 | { | 242 | { |
243 | int ret; | 243 | int ret; |
244 | ret = xt_register_match(&tcp_matchstruct); | 244 | ret = xt_register_match(&tcp_matchstruct); |
@@ -268,7 +268,7 @@ out_unreg_tcp: | |||
268 | return ret; | 268 | return ret; |
269 | } | 269 | } |
270 | 270 | ||
271 | static void __exit fini(void) | 271 | static void __exit xt_tcpudp_fini(void) |
272 | { | 272 | { |
273 | xt_unregister_match(&udp6_matchstruct); | 273 | xt_unregister_match(&udp6_matchstruct); |
274 | xt_unregister_match(&udp_matchstruct); | 274 | xt_unregister_match(&udp_matchstruct); |
@@ -276,5 +276,5 @@ static void __exit fini(void) | |||
276 | xt_unregister_match(&tcp_matchstruct); | 276 | xt_unregister_match(&tcp_matchstruct); |
277 | } | 277 | } |
278 | 278 | ||
279 | module_init(init); | 279 | module_init(xt_tcpudp_init); |
280 | module_exit(fini); | 280 | module_exit(xt_tcpudp_fini); |