libxt_NOTRACK.c revision c5e85736c207f211d82d2878a5781f512327dfce
1/* Shared library add-on to iptables to add NOTRACK 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 10static void NOTRACK_help(void) 11{ 12 printf("NOTRACK target takes no options\n"); 13} 14 15static int 16NOTRACK_parse(int c, char **argv, int invert, unsigned int *flags, 17 const void *entry, struct xt_entry_target **target) 18{ 19 return 0; 20} 21 22static struct xtables_target notrack_target = { 23 .family = NFPROTO_UNSPEC, 24 .name = "NOTRACK", 25 .version = XTABLES_VERSION, 26 .size = XT_ALIGN(0), 27 .userspacesize = XT_ALIGN(0), 28 .help = NOTRACK_help, 29 .parse = NOTRACK_parse, 30}; 31 32void _init(void) 33{ 34 xtables_register_target(¬rack_target); 35} 36