diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2007-12-04 23:24:03 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:55:53 -0800 |
commit | d3c5ee6d545b5372fd525ebe16988a5b6efeceb0 (patch) | |
tree | 97efd14cfb818ac5fb56a023efe9217f78ad240f /net/ipv4/netfilter/ipt_owner.c | |
parent | 4c610979576d8778c401a9b1d247ed14f6cee998 (diff) | |
download | kernel_samsung_smdk4412-d3c5ee6d545b5372fd525ebe16988a5b6efeceb0.zip kernel_samsung_smdk4412-d3c5ee6d545b5372fd525ebe16988a5b6efeceb0.tar.gz kernel_samsung_smdk4412-d3c5ee6d545b5372fd525ebe16988a5b6efeceb0.tar.bz2 |
[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/ipv4/netfilter/ipt_owner.c')
-rw-r--r-- | net/ipv4/netfilter/ipt_owner.c | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/net/ipv4/netfilter/ipt_owner.c b/net/ipv4/netfilter/ipt_owner.c index 6bc4bfe..4f1aa89 100644 --- a/net/ipv4/netfilter/ipt_owner.c +++ b/net/ipv4/netfilter/ipt_owner.c @@ -22,14 +22,10 @@ MODULE_AUTHOR("Marc Boucher <marc@mbsi.ca>"); MODULE_DESCRIPTION("iptables owner match"); static bool -match(const struct sk_buff *skb, - const struct net_device *in, - const struct net_device *out, - const struct xt_match *match, - const void *matchinfo, - int offset, - unsigned int protoff, - bool *hotdrop) +owner_mt(const struct sk_buff *skb, const struct net_device *in, + const struct net_device *out, const struct xt_match *match, + const void *matchinfo, int offset, unsigned int protoff, + bool *hotdrop) { const struct ipt_owner_info *info = matchinfo; @@ -52,11 +48,9 @@ match(const struct sk_buff *skb, } static bool -checkentry(const char *tablename, - const void *ip, - const struct xt_match *match, - void *matchinfo, - unsigned int hook_mask) +owner_mt_check(const char *tablename, const void *ip, + const struct xt_match *match, void *matchinfo, + unsigned int hook_mask) { const struct ipt_owner_info *info = matchinfo; @@ -68,26 +62,26 @@ checkentry(const char *tablename, return true; } -static struct xt_match owner_match __read_mostly = { +static struct xt_match owner_mt_reg __read_mostly = { .name = "owner", .family = AF_INET, - .match = match, + .match = owner_mt, .matchsize = sizeof(struct ipt_owner_info), .hooks = (1 << NF_INET_LOCAL_OUT) | (1 << NF_INET_POST_ROUTING), - .checkentry = checkentry, + .checkentry = owner_mt_check, .me = THIS_MODULE, }; -static int __init ipt_owner_init(void) +static int __init owner_mt_init(void) { - return xt_register_match(&owner_match); + return xt_register_match(&owner_mt_reg); } -static void __exit ipt_owner_fini(void) +static void __exit owner_mt_exit(void) { - xt_unregister_match(&owner_match); + xt_unregister_match(&owner_mt_reg); } -module_init(ipt_owner_init); -module_exit(ipt_owner_fini); +module_init(owner_mt_init); +module_exit(owner_mt_exit); |