diff -urN iptables-1.2.11/extensions/libipt_stealth.c iptables-1.2.11/extensions/libipt_stealth.c --- iptables-1.2.11/extensions/libipt_stealth.c 1969-12-31 19:00:00 -0500 +++ iptables-1.2.11/extensions/libipt_stealth.c 2004-07-13 21:14:15 -0400 @@ -0,0 +1,62 @@ +/* Shared library add-on to iptables to add stealth support. + * Copyright (C) 2002 Brad Spengler + * This netfilter module is licensed under the GNU GPL. + */ + +#include +#include +#include +#include +#include + +/* Function which prints out usage message. */ +static void +help(void) +{ + printf("stealth v%s takes no options\n\n", XTABLES_VERSION); +} + +static struct option opts[] = { + {0} +}; + +/* Initialize the match. */ +static void +init(struct ipt_entry_match *m, unsigned int *nfcache) +{ + *nfcache |= NFC_UNKNOWN; +} + +static int +parse(int c, char **argv, int invert, unsigned int *flags, + const void *entry, struct xt_entry_match **match) +{ + return 0; +} + +static void +final_check(unsigned int flags) +{ + return; +} + +static +struct xtables_match stealth = { + .next = NULL, + .name = "stealth", + .version = XTABLES_VERSION, + .size = IPT_ALIGN(0), + .userspacesize = IPT_ALIGN(0), + .help = &help, + .init = &init, + .parse = &parse, + .final_check = &final_check, + .print = NULL, + .save = NULL, + .extra_opts = opts +}; + +void _init(void) +{ + xtables_register_match(&stealth); +}