1 /* Shared library add-on to iptables for TARPIT support */
6 #ifndef XTABLES_VERSION
7 #define XTABLES_VERSION IPTABLES_VERSION
11 #define xtables_target iptables_target
12 #define xtables_register_target register_target
19 "TARPIT takes no options\n"
23 static struct option opts
[] = {
29 parse(int c
, char **argv
, int invert
, unsigned int *flags
,
31 const void *entry
, struct xt_entry_target
**target
)
33 const struct ipt_entry
*entry
, struct ipt_entry_target
**target
)
39 static void final_check(unsigned int flags
)
46 const struct xt_entry_target
*target
,
48 print(const struct ipt_ip
*ip
,
49 const struct ipt_entry_target
*target
,
58 const struct xt_entry_target
*target
)
60 save(const struct ipt_ip
*ip
,
61 const struct ipt_entry_target
*target
)
66 static struct xtables_target tarpit
= {
69 .version
= XTABLES_VERSION
,
71 .userspacesize
= IPT_ALIGN(0),
74 .final_check
= &final_check
,
82 xtables_register_target(&tarpit
);