changing trunk/trunk to trunk
[iptables.git] / extensions / libxt_standard.c
1 /* Shared library add-on to iptables for standard target support. */
2 #include <stdio.h>
3 #include <netdb.h>
4 #include <string.h>
5 #include <stdlib.h>
6 #include <limits.h>
7 #include <getopt.h>
8 #include <xtables.h>
9
10 /* Function which prints out usage message. */
11 static void standard_help(void)
12 {
13         printf(
14 "standard match options:\n"
15 "(If target is DROP, ACCEPT, RETURN or nothing)\n");
16 }
17
18 /* Function which parses command options; returns true if it
19    ate an option */
20 static int standard_parse(int c, char **argv, int invert, unsigned int *flags,
21                           const void *entry, struct xt_entry_target **target)
22 {
23         return 0;
24 }
25
26 static struct xtables_target standard_target = {
27         .family         = AF_UNSPEC,
28         .name           = "standard",
29         .version        = XTABLES_VERSION,
30         .size           = XT_ALIGN(sizeof(int)),
31         .userspacesize  = XT_ALIGN(sizeof(int)),
32         .help           = standard_help,
33         .parse          = standard_parse,
34 };
35
36 void _init(void)
37 {
38         xtables_register_target(&standard_target);
39 }