blob: 93d9013e84267480f917344862616213c446d9cd [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* 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}