aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_SECMARK.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_SECMARK.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_SECMARK.c')
-rw-r--r--net/netfilter/xt_SECMARK.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/net/netfilter/xt_SECMARK.c b/net/netfilter/xt_SECMARK.c
index 235806eb6ec..7d5439c9f18 100644
--- a/net/netfilter/xt_SECMARK.c
+++ b/net/netfilter/xt_SECMARK.c
@@ -28,10 +28,10 @@ MODULE_ALIAS("ip6t_SECMARK");
28 28
29static u8 mode; 29static u8 mode;
30 30
31static unsigned int target(struct sk_buff *skb, const struct net_device *in, 31static unsigned int
32 const struct net_device *out, unsigned int hooknum, 32secmark_tg(struct sk_buff *skb, const struct net_device *in,
33 const struct xt_target *target, 33 const struct net_device *out, unsigned int hooknum,
34 const void *targinfo) 34 const struct xt_target *target, const void *targinfo)
35{ 35{
36 u32 secmark = 0; 36 u32 secmark = 0;
37 const struct xt_secmark_target_info *info = targinfo; 37 const struct xt_secmark_target_info *info = targinfo;
@@ -81,9 +81,10 @@ static bool checkentry_selinux(struct xt_secmark_target_info *info)
81 return true; 81 return true;
82} 82}
83 83
84static bool checkentry(const char *tablename, const void *entry, 84static bool
85 const struct xt_target *target, void *targinfo, 85secmark_tg_check(const char *tablename, const void *entry,
86 unsigned int hook_mask) 86 const struct xt_target *target, void *targinfo,
87 unsigned int hook_mask)
87{ 88{
88 struct xt_secmark_target_info *info = targinfo; 89 struct xt_secmark_target_info *info = targinfo;
89 90
@@ -109,12 +110,12 @@ static bool checkentry(const char *tablename, const void *entry,
109 return true; 110 return true;
110} 111}
111 112
112static struct xt_target xt_secmark_target[] __read_mostly = { 113static struct xt_target secmark_tg_reg[] __read_mostly = {
113 { 114 {
114 .name = "SECMARK", 115 .name = "SECMARK",
115 .family = AF_INET, 116 .family = AF_INET,
116 .checkentry = checkentry, 117 .checkentry = secmark_tg_check,
117 .target = target, 118 .target = secmark_tg,
118 .targetsize = sizeof(struct xt_secmark_target_info), 119 .targetsize = sizeof(struct xt_secmark_target_info),
119 .table = "mangle", 120 .table = "mangle",
120 .me = THIS_MODULE, 121 .me = THIS_MODULE,
@@ -122,24 +123,23 @@ static struct xt_target xt_secmark_target[] __read_mostly = {
122 { 123 {
123 .name = "SECMARK", 124 .name = "SECMARK",
124 .family = AF_INET6, 125 .family = AF_INET6,
125 .checkentry = checkentry, 126 .checkentry = secmark_tg_check,
126 .target = target, 127 .target = secmark_tg,
127 .targetsize = sizeof(struct xt_secmark_target_info), 128 .targetsize = sizeof(struct xt_secmark_target_info),
128 .table = "mangle", 129 .table = "mangle",
129 .me = THIS_MODULE, 130 .me = THIS_MODULE,
130 }, 131 },
131}; 132};
132 133
133static int __init xt_secmark_init(void) 134static int __init secmark_tg_init(void)
134{ 135{
135 return xt_register_targets(xt_secmark_target, 136 return xt_register_targets(secmark_tg_reg, ARRAY_SIZE(secmark_tg_reg));
136 ARRAY_SIZE(xt_secmark_target));
137} 137}
138 138
139static void __exit xt_secmark_fini(void) 139static void __exit secmark_tg_exit(void)
140{ 140{
141 xt_unregister_targets(xt_secmark_target, ARRAY_SIZE(xt_secmark_target)); 141 xt_unregister_targets(secmark_tg_reg, ARRAY_SIZE(secmark_tg_reg));
142} 142}
143 143
144module_init(xt_secmark_init); 144module_init(secmark_tg_init);
145module_exit(xt_secmark_fini); 145module_exit(secmark_tg_exit);