fix for f12, gcc4.4
[iptables.git] / extensions / libipt_TARPIT.c
1 /* Shared library add-on to iptables for TARPIT support */
2 #include <stdio.h>
3 #include <getopt.h>
4 #include <iptables.h>
5
6 static void
7 help(void)
8 {
9         fputs(
10 "TARPIT takes no options\n"
11 "\n", stdout);
12 }
13
14 static struct option opts[] = {
15         { 0 }
16 };
17
18 static int
19 parse(int c, char **argv, int invert, unsigned int *flags,
20       const struct ipt_entry *entry,
21       struct ipt_entry_target **target)
22 {
23         return 0;
24 }
25
26 static void final_check(unsigned int flags)
27 {
28 }
29
30 static void
31 print(const struct ipt_ip *ip,
32       const struct ipt_entry_target *target,
33       int numeric)
34 {
35 }
36
37 static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
38 {
39 }
40
41 static struct iptables_target tarpit = {
42         .next           = NULL,
43         .name           = "TARPIT",
44         .version        = IPTABLES_VERSION,
45         .size           = IPT_ALIGN(0),
46         .userspacesize  = IPT_ALIGN(0),
47         .help           = &help,
48         .parse          = &parse,
49         .final_check    = &final_check,
50         .print          = &print,
51         .save           = &save,
52         .extra_opts     = opts
53 };
54
55 void _init(void)
56 {
57         register_target(&tarpit);
58 }