diff -N -r -u linux/include/linux/netfilter_ipv4/ipt_FTOS.h linux.mgm/include/linux/netfilter_ipv4/ipt_FTOS.h
--- linux/include/linux/netfilter_ipv4/ipt_FTOS.h	Wed Dec 31 18:00:00 1969
+++ linux.mgm/include/linux/netfilter_ipv4/ipt_FTOS.h	Thu Nov  9 11:46:26 2000
@@ -0,0 +1,16 @@
+/* Set TOS field in header to any value
+ *
+ * (C) 2000 by Matthew G. Marsh <mgm@paktronix.com>
+ *
+ * This software is distributed under GNU GPL v2, 1991
+ * 
+ * ipt_FTOS.h borrowed heavily from ipt_TOS.h  11/09/2000
+*/
+#ifndef _IPT_FTOS_H
+#define _IPT_FTOS_H
+
+struct ipt_FTOS_info {
+	u_int8_t ftos;
+};
+
+#endif /*_IPT_FTOS_H*/

diff -N -r -u linux.24p10.clean/net/ipv4/netfilter/ipt_FTOS.c linux.mgm/net/ipv4/netfilter/ipt_FTOS.c
--- linux.24p10.clean/net/ipv4/netfilter/ipt_FTOS.c	Wed Dec 31 18:00:00 1969
+++ linux.mgm/net/ipv4/netfilter/ipt_FTOS.c	Thu Nov  9 11:46:26 2000
@@ -0,0 +1,84 @@
+/* Set TOS field in header to any value
+ *
+ * (C) 2000 by Matthew G. Marsh <mgm@paktronix.com>
+ *
+ * This software is distributed under GNU GPL v2, 1991
+ * 
+ * ipt_FTOS.c borrowed heavily from ipt_TOS.c  11/09/2000
+*/
+
+#include <linux/module.h>
+#include <linux/skbuff.h>
+#include <linux/ip.h>
+#include <net/checksum.h>
+
+#include <linux/netfilter_ipv4/ip_tables.h>
+#include <linux/netfilter_ipv4/ipt_FTOS.h>
+
+static unsigned int
+target(struct sk_buff **pskb,
+       unsigned int hooknum,
+       const struct net_device *in,
+       const struct net_device *out,
+       const void *targinfo,
+       void *userinfo)
+{
+	struct iphdr *iph = (*pskb)->nh.iph;
+	const struct ipt_FTOS_info *finfo = targinfo;
+
+	if ((iph->tos & IPTOS_TOS_MASK) != finfo->ftos) {
+		u_int8_t diffs[2];
+
+		diffs[0] = iph->tos;
+		iph->tos = (iph->tos & IPTOS_PREC_MASK) | finfo->ftos;
+		diffs[1] = iph->tos;
+		iph->check = csum_fold(csum_partial((char *)diffs,
+		                                    sizeof(diffs),
+		                                    iph->check^0xFFFF));
+		(*pskb)->nfcache |= NFC_ALTERED;
+	}
+	return IPT_CONTINUE;
+}
+
+static int
+checkentry(const char *tablename,
+	   const struct ipt_entry *e,
+           void *targinfo,
+           unsigned int targinfosize,
+           unsigned int hook_mask)
+{
+	const u_int8_t ftos = ((struct ipt_FTOS_info *)targinfo)->ftos;
+
+	if (targinfosize != IPT_ALIGN(sizeof(struct ipt_FTOS_info))) {
+		printk(KERN_WARNING "FTOS: targinfosize %u != %Zu\n",
+		       targinfosize,
+		       IPT_ALIGN(sizeof(struct ipt_FTOS_info)));
+		return 0;
+	}
+
+	if (strcmp(tablename, "mangle") != 0) {
+		printk(KERN_WARNING "FTOS: can only be called from \"mangle\" table, not \"%s\"\n", tablename);
+		return 0;
+	}
+
+	return 1;
+}
+
+static struct ipt_target ipt_ftos_reg
+= { { NULL, NULL }, "FTOS", target, checkentry, NULL, THIS_MODULE };
+
+static int __init init(void)
+{
+	if (ipt_register_target(&ipt_ftos_reg))
+		return -EINVAL;
+
+	return 0;
+}
+
+static void __exit fini(void)
+{
+	ipt_unregister_target(&ipt_ftos_reg);
+}
+
+module_init(init);
+module_exit(fini);
