1 /* Shared library add-on to iptables for IPV4OPTSSTRIP
2 * This modules strip all the IP options.
4 * (C) 2001 by Fabrice MARIE <fabrice@netfilter.org>
5 * This program is distributed under the terms of GNU GPL v2, 1991
14 #include <linux/netfilter_ipv4/ip_tables.h>
16 static void init(struct ipt_entry_target *t, unsigned int *nfcache)
18 *nfcache |= NFC_UNKNOWN;
21 static void help(void)
23 printf("IPV4OPTSSTRIP v%s target takes no option !! Make sure you use it in the mangle table.\n",
27 static struct option opts[] = {
31 /* Function which parses command options; returns true if it
34 parse(int c, char **argv, int invert, unsigned int *flags,
35 const struct ipt_entry *entry,
36 struct ipt_entry_target **target)
42 final_check(unsigned int flags)
46 /* Prints out the targinfo. */
48 print(const struct ipt_ip *ip,
49 const struct ipt_entry_target *target,
52 /* nothing to print, we don't take option... */
55 /* Saves the stuff in parsable form to stdout. */
57 save(const struct ipt_ip *ip, const struct ipt_entry_target *target)
59 /* nothing to print, we don't take option... */
63 struct iptables_target IPV4OPTSSTRIP
80 register_target(&IPV4OPTSSTRIP);