2 * Implements a dummy match to allow attaching comments to rules
4 * 2003-05-13 Brad Fisher (brad@info-link.net)
7 #include <linux/module.h>
8 #include <linux/skbuff.h>
9 #include <linux/netfilter_ipv4/ip_tables.h>
10 #include <linux/netfilter_ipv4/ipt_comment.h>
12 MODULE_AUTHOR("Brad Fisher <brad@info-link.net>");
13 MODULE_DESCRIPTION("iptables comment match module");
14 MODULE_LICENSE("GPL");
17 match(const struct sk_buff
*skb
,
18 const struct net_device
*in
,
19 const struct net_device
*out
,
20 const void *matchinfo
,
29 checkentry(const char *tablename
,
30 const struct ipt_ip
*ip
,
32 unsigned int matchsize
,
33 unsigned int hook_mask
)
36 if (matchsize
!= IPT_ALIGN(sizeof(struct ipt_comment_info
)))
41 static struct ipt_match comment_match
= {
44 .checkentry
= checkentry
,
48 static int __init
init(void)
50 return ipt_register_match(&comment_match
);
53 static void __exit
fini(void)
55 ipt_unregister_match(&comment_match
);
This page took 0.038961 seconds and 5 git commands to generate.