[URGENT][PATCH] One line change to fix TOS-setting.

Paul Rusty Russell (Paul.Russell@rustcorp.com.au)
Thu, 23 Jul 1998 10:56:38 +0930


TOS setting is not happening in 2.1.102 and above; I cleaned the code
and accidentally washed it away.

Please apply:

--- linux/net/ipv4/ip_fw.c.~1~ Mon Jun 29 06:30:03 1998
+++ linux/net/ipv4/ip_fw.c Mon Jul 6 00:32:06 1998
@@ -510,7 +510,7 @@

static inline void
ip_fw_domatch(struct ip_fwkernel *f,
- const struct iphdr *ip,
+ struct iphdr *ip,
const char *rif,
const ip_chainlabel label,
struct sk_buff *skb,
@@ -522,6 +522,8 @@
if (f->ipfw.fw_flg & IP_FW_F_PRN) {
dump_packet(ip,rif,f,label,src_port,dst_port);
}
+ ip->tos = (ip->tos & f->ipfw.fw_tosand) ^ f->ipfw.fw_tosxor;
+
/* This functionality is useless in stock 2.0.x series, but we don't
* discard the mark thing altogether, to avoid breaking ipchains (and,
* more importantly, the ipfwadm wrapper) --PR */

Rusty.
PS. Am I stupid, or is the method for logging onto linux-patches
jitterbug as a non-guest really well hidden?

--
 .sig lost in the mail.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html