libipt_unclean.c revision 830132ac9c0d270bf9dcfe85c2464e3fe8c73fb9
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. */
8static void
9help(void)
10{
11	printf(
12"unclean v%s takes no options\n"
13"\n", IPTABLES_VERSION);
14}
15
16/* Function which parses command options; returns true if it
17   ate an option */
18static int
19parse(int c, char **argv, int invert, unsigned int *flags,
20      const void *entry,
21      struct xt_entry_match **match)
22{
23	return 0;
24}
25
26static
27struct iptables_match unclean = {
28	.name		= "unclean",
29	.version	= IPTABLES_VERSION,
30	.size		= IPT_ALIGN(0),
31	.userspacesize	= IPT_ALIGN(0),
32	.help		= &help,
33	.parse		= &parse,
34	.print		= NULL,
35	.save		= NULL,
36};
37
38void _init(void)
39{
40	register_match(&unclean);
41}
42