Yasuyuki KOZAKAI | 1a31b42 | 2007-08-04 08:22:03 +0000 | [diff] [blame] | 1 | /* Shared library add-on to iptables to add TRACE target support. */ |
| 2 | #include <stdio.h> |
| 3 | #include <string.h> |
| 4 | #include <stdlib.h> |
| 5 | #include <getopt.h> |
| 6 | |
| 7 | #include <xtables.h> |
| 8 | #include <linux/netfilter/x_tables.h> |
| 9 | |
Jan Engelhardt | 932e648 | 2007-10-04 16:27:30 +0000 | [diff] [blame] | 10 | static struct xtables_target trace_target = { |
Jan Engelhardt | 4297936 | 2009-06-01 11:56:23 +0200 | [diff] [blame] | 11 | .family = NFPROTO_UNSPEC, |
Yasuyuki KOZAKAI | 1a31b42 | 2007-08-04 08:22:03 +0000 | [diff] [blame] | 12 | .name = "TRACE", |
Jan Engelhardt | 8b7c64d | 2008-04-15 11:48:25 +0200 | [diff] [blame] | 13 | .version = XTABLES_VERSION, |
Yasuyuki KOZAKAI | 1a31b42 | 2007-08-04 08:22:03 +0000 | [diff] [blame] | 14 | .size = XT_ALIGN(0), |
| 15 | .userspacesize = XT_ALIGN(0), |
Yasuyuki KOZAKAI | 1a31b42 | 2007-08-04 08:22:03 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | void _init(void) |
| 19 | { |
Jan Engelhardt | 932e648 | 2007-10-04 16:27:30 +0000 | [diff] [blame] | 20 | xtables_register_target(&trace_target); |
Yasuyuki KOZAKAI | 1a31b42 | 2007-08-04 08:22:03 +0000 | [diff] [blame] | 21 | } |