changing trunk/trunk to trunk
[iptables.git] / extensions / libipt_unclean.c
1 /* Shared library add-on to iptables for unclean. */
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <getopt.h>
5 #include <iptables.h>
6
7 /* Function which prints out usage message. */
8 static void unclean_help(void)
9 {
10         printf("unclean match takes no options\n");
11 }
12
13 /* Function which parses command options; returns true if it
14    ate an option */
15 static int unclean_parse(int c, char **argv, int invert, unsigned int *flags,
16                          const void *entry, struct xt_entry_match **match)
17 {
18         return 0;
19 }
20
21 static struct xtables_match unclean_mt_reg = {
22         .name           = "unclean",
23         .version        = XTABLES_VERSION,
24         .family         = PF_INET,
25         .size           = XT_ALIGN(0),
26         .userspacesize  = XT_ALIGN(0),
27         .help           = unclean_help,
28         .parse          = unclean_parse,
29 };
30
31 void _init(void)
32 {
33         xtables_register_match(&unclean_mt_reg);
34 }