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