diff options
author | Patrick McHardy | 2006-03-21 03:01:58 +0100 |
---|---|---|
committer | David S. Miller | 2006-03-21 03:01:58 +0100 |
commit | 5d04bff096180f032de8b9b12153a8a1b4009b8d (patch) | |
tree | 58aa8a8177b6d07cbce8b0c0bedeb23ecbde74d8 /net/netfilter/xt_comment.c | |
parent | [NETFILTER]: Convert ip6_tables matches/targets to centralized error checking (diff) | |
download | kernel-qcow2-linux-5d04bff096180f032de8b9b12153a8a1b4009b8d.tar.gz kernel-qcow2-linux-5d04bff096180f032de8b9b12153a8a1b4009b8d.tar.xz kernel-qcow2-linux-5d04bff096180f032de8b9b12153a8a1b4009b8d.zip |
[NETFILTER]: Convert x_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/netfilter/xt_comment.c')
-rw-r--r-- | net/netfilter/xt_comment.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/net/netfilter/xt_comment.c b/net/netfilter/xt_comment.c index 4ba6fd65c6e9..b3f07aa593f4 100644 --- a/net/netfilter/xt_comment.c +++ b/net/netfilter/xt_comment.c @@ -28,30 +28,17 @@ match(const struct sk_buff *skb, return 1; } -static int -checkentry(const char *tablename, - const void *ip, - void *matchinfo, - unsigned int matchsize, - unsigned int hook_mask) -{ - /* Check the size */ - if (matchsize != XT_ALIGN(sizeof(struct xt_comment_info))) - return 0; - return 1; -} - static struct xt_match comment_match = { .name = "comment", .match = match, - .checkentry = checkentry, + .matchsize = sizeof(struct xt_comment_info), .me = THIS_MODULE }; static struct xt_match comment6_match = { .name = "comment", .match = match, - .checkentry = checkentry, + .matchsize = sizeof(struct xt_comment_info), .me = THIS_MODULE }; |