aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_helper.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2007-12-05 02:24:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:55:53 -0500
commitd3c5ee6d545b5372fd525ebe16988a5b6efeceb0 (patch)
tree97efd14cfb818ac5fb56a023efe9217f78ad240f /net/netfilter/xt_helper.c
parent4c610979576d8778c401a9b1d247ed14f6cee998 (diff)
[NETFILTER]: x_tables: consistent and unique symbol names
Give all Netfilter modules consistent and unique symbol names. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_helper.c')
-rw-r--r--net/netfilter/xt_helper.c52
1 files changed, 22 insertions, 30 deletions
diff --git a/net/netfilter/xt_helper.c b/net/netfilter/xt_helper.c
index d842c4a6d63..f342788a576 100644
--- a/net/netfilter/xt_helper.c
+++ b/net/netfilter/xt_helper.c
@@ -24,14 +24,10 @@ MODULE_ALIAS("ip6t_helper");
24 24
25 25
26static bool 26static bool
27match(const struct sk_buff *skb, 27helper_mt(const struct sk_buff *skb, const struct net_device *in,
28 const struct net_device *in, 28 const struct net_device *out, const struct xt_match *match,
29 const struct net_device *out, 29 const void *matchinfo, int offset, unsigned int protoff,
30 const struct xt_match *match, 30 bool *hotdrop)
31 const void *matchinfo,
32 int offset,
33 unsigned int protoff,
34 bool *hotdrop)
35{ 31{
36 const struct xt_helper_info *info = matchinfo; 32 const struct xt_helper_info *info = matchinfo;
37 const struct nf_conn *ct; 33 const struct nf_conn *ct;
@@ -61,11 +57,10 @@ match(const struct sk_buff *skb,
61 return ret; 57 return ret;
62} 58}
63 59
64static bool check(const char *tablename, 60static bool
65 const void *inf, 61helper_mt_check(const char *tablename, const void *inf,
66 const struct xt_match *match, 62 const struct xt_match *match, void *matchinfo,
67 void *matchinfo, 63 unsigned int hook_mask)
68 unsigned int hook_mask)
69{ 64{
70 struct xt_helper_info *info = matchinfo; 65 struct xt_helper_info *info = matchinfo;
71 66
@@ -78,44 +73,41 @@ static bool check(const char *tablename,
78 return true; 73 return true;
79} 74}
80 75
81static void 76static void helper_mt_destroy(const struct xt_match *match, void *matchinfo)
82destroy(const struct xt_match *match, void *matchinfo)
83{ 77{
84 nf_ct_l3proto_module_put(match->family); 78 nf_ct_l3proto_module_put(match->family);
85} 79}
86 80
87static struct xt_match xt_helper_match[] __read_mostly = { 81static struct xt_match helper_mt_reg[] __read_mostly = {
88 { 82 {
89 .name = "helper", 83 .name = "helper",
90 .family = AF_INET, 84 .family = AF_INET,
91 .checkentry = check, 85 .checkentry = helper_mt_check,
92 .match = match, 86 .match = helper_mt,
93 .destroy = destroy, 87 .destroy = helper_mt_destroy,
94 .matchsize = sizeof(struct xt_helper_info), 88 .matchsize = sizeof(struct xt_helper_info),
95 .me = THIS_MODULE, 89 .me = THIS_MODULE,
96 }, 90 },
97 { 91 {
98 .name = "helper", 92 .name = "helper",
99 .family = AF_INET6, 93 .family = AF_INET6,
100 .checkentry = check, 94 .checkentry = helper_mt_check,
101 .match = match, 95 .match = helper_mt,
102 .destroy = destroy, 96 .destroy = helper_mt_destroy,
103 .matchsize = sizeof(struct xt_helper_info), 97 .matchsize = sizeof(struct xt_helper_info),
104 .me = THIS_MODULE, 98 .me = THIS_MODULE,
105 }, 99 },
106}; 100};
107 101
108static int __init xt_helper_init(void) 102static int __init helper_mt_init(void)
109{ 103{
110 return xt_register_matches(xt_helper_match, 104 return xt_register_matches(helper_mt_reg, ARRAY_SIZE(helper_mt_reg));
111 ARRAY_SIZE(xt_helper_match));
112} 105}
113 106
114static void __exit xt_helper_fini(void) 107static void __exit helper_mt_exit(void)
115{ 108{
116 xt_unregister_matches(xt_helper_match, ARRAY_SIZE(xt_helper_match)); 109 xt_unregister_matches(helper_mt_reg, ARRAY_SIZE(helper_mt_reg));
117} 110}
118 111
119module_init(xt_helper_init); 112module_init(helper_mt_init);
120module_exit(xt_helper_fini); 113module_exit(helper_mt_exit);
121