libipt_unclean.c revision 5d9678ad3eabc34ac40dfe055d7f6a8e44445a5a
1/* Shared library add-on to iptables for unclean. */ 2#include <stdio.h> 3#include <stdlib.h> 4#include <getopt.h> 5#include <xtables.h> 6 7static void unclean_help(void) 8{ 9 printf("unclean match takes no options\n"); 10} 11 12static int unclean_parse(int c, char **argv, int invert, unsigned int *flags, 13 const void *entry, struct xt_entry_match **match) 14{ 15 return 0; 16} 17 18static struct xtables_match unclean_mt_reg = { 19 .name = "unclean", 20 .version = XTABLES_VERSION, 21 .family = NFPROTO_IPV4, 22 .size = XT_ALIGN(0), 23 .userspacesize = XT_ALIGN(0), 24 .help = unclean_help, 25 .parse = unclean_parse, 26}; 27 28void _init(void) 29{ 30 xtables_register_match(&unclean_mt_reg); 31} 32