libxt_standard.c 533 B

123456789101112131415161718192021222324
  1. /* Shared library add-on to iptables for standard target support. */
  2. #include <stdio.h>
  3. #include <xtables.h>
  4. static void standard_help(void)
  5. {
  6. printf(
  7. "standard match options:\n"
  8. "(If target is DROP, ACCEPT, RETURN or nothing)\n");
  9. }
  10. static struct xtables_target standard_target = {
  11. .family = NFPROTO_UNSPEC,
  12. .name = "standard",
  13. .version = XTABLES_VERSION,
  14. .size = XT_ALIGN(sizeof(int)),
  15. .userspacesize = XT_ALIGN(sizeof(int)),
  16. .help = standard_help,
  17. };
  18. void _init(void)
  19. {
  20. xtables_register_target(&standard_target);
  21. }