diff options
author | Patrick McHardy | 2006-03-21 03:01:43 +0100 |
---|---|---|
committer | David S. Miller | 2006-03-21 03:01:43 +0100 |
commit | 7f9397138e297904bf1c717651183e785a01ff13 (patch) | |
tree | 67b39ba381e8ffd2340d002a118252be0fc2e923 /net/ipv6/netfilter/ip6t_hl.c | |
parent | [NETFILTER]: Convert arp_tables targets to centralized error checking (diff) | |
download | kernel-qcow2-linux-7f9397138e297904bf1c717651183e785a01ff13.tar.gz kernel-qcow2-linux-7f9397138e297904bf1c717651183e785a01ff13.tar.xz kernel-qcow2-linux-7f9397138e297904bf1c717651183e785a01ff13.zip |
[NETFILTER]: Convert ip6_tables matches/targets to centralized error checking
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6t_hl.c')
-rw-r--r-- | net/ipv6/netfilter/ip6t_hl.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/net/ipv6/netfilter/ip6t_hl.c b/net/ipv6/netfilter/ip6t_hl.c index c5d9079f2d9d..1eabb6507300 100644 --- a/net/ipv6/netfilter/ip6t_hl.c +++ b/net/ipv6/netfilter/ip6t_hl.c @@ -48,20 +48,10 @@ static int match(const struct sk_buff *skb, const struct net_device *in, return 0; } -static int checkentry(const char *tablename, const void *entry, - void *matchinfo, unsigned int matchsize, - unsigned int hook_mask) -{ - if (matchsize != IP6T_ALIGN(sizeof(struct ip6t_hl_info))) - return 0; - - return 1; -} - static struct ip6t_match hl_match = { .name = "hl", - .match = &match, - .checkentry = &checkentry, + .match = match, + .matchsize = sizeof(struct ip6t_hl_info), .me = THIS_MODULE, }; |