manpages: do not include v4-only modules in ip6tables manpage
[jleu-iptables.git] / extensions / libipt_unclean.c
blob93d9013e84267480f917344862616213c446d9cd
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>
7 static void unclean_help(void)
9 printf("unclean match takes no options\n");
12 static int unclean_parse(int c, char **argv, int invert, unsigned int *flags,
13 const void *entry, struct xt_entry_match **match)
15 return 0;
18 static 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,
28 void _init(void)
30 xtables_register_match(&unclean_mt_reg);