blob: 7b9b3e4269e4b2c44376571fa657d54c077272d3 [file] [log] [blame]
Marc Bouchere6869a82000-03-20 06:03:29 +00001/* 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"
Harald Welte80fe35d2002-05-29 13:08:15 +000013"\n", IPTABLES_VERSION);
Marc Bouchere6869a82000-03-20 06:03:29 +000014}
15
16static struct option opts[] = {
17 {0}
18};
19
Marc Bouchere6869a82000-03-20 06:03:29 +000020/* Function which parses command options; returns true if it
21 ate an option */
22static int
23parse(int c, char **argv, int invert, unsigned int *flags,
24 const struct ipt_entry *entry,
25 unsigned int *nfcache,
26 struct ipt_entry_match **match)
27{
28 return 0;
29}
30
31/* Final check; must have specified --mac. */
32static void final_check(unsigned int flags)
33{
34}
35
Harald Welte3efb6ea2001-08-06 18:50:21 +000036static
Pablo Neira8caee8b2004-12-28 13:11:59 +000037struct iptables_match unclean = {
38 .next = NULL,
39 .name = "unclean",
40 .version = IPTABLES_VERSION,
41 .size = IPT_ALIGN(0),
42 .userspacesize = IPT_ALIGN(0),
43 .help = &help,
Pablo Neira8caee8b2004-12-28 13:11:59 +000044 .parse = &parse,
45 .final_check = &final_check,
46 .print = NULL,
47 .save = NULL,
48 .extra_opts = opts
Marc Bouchere6869a82000-03-20 06:03:29 +000049};
50
51void _init(void)
52{
53 register_match(&unclean);
54}