Clean and tiddy-up files.
[tomato.git] / release / src / router / iptables / extensions / libipt_unclean.c
blob7b9b3e4269e4b2c44376571fa657d54c077272d3
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>
7 /* Function which prints out usage message. */
8 static void
9 help(void)
11 printf(
12 "unclean v%s takes no options\n"
13 "\n", IPTABLES_VERSION);
16 static struct option opts[] = {
17 {0}
20 /* Function which parses command options; returns true if it
21 ate an option */
22 static int
23 parse(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)
28 return 0;
31 /* Final check; must have specified --mac. */
32 static void final_check(unsigned int flags)
36 static
37 struct 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,
44 .parse = &parse,
45 .final_check = &final_check,
46 .print = NULL,
47 .save = NULL,
48 .extra_opts = opts
51 void _init(void)
53 register_match(&unclean);