libxt_TRACE.c 451 B

123456789101112131415161718192021
  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. #include <xtables.h>
  7. #include <linux/netfilter/x_tables.h>
  8. static struct xtables_target trace_target = {
  9. .family = NFPROTO_UNSPEC,
  10. .name = "TRACE",
  11. .version = XTABLES_VERSION,
  12. .size = XT_ALIGN(0),
  13. .userspacesize = XT_ALIGN(0),
  14. };
  15. void _init(void)
  16. {
  17. xtables_register_target(&trace_target);
  18. }