[1924] in linux-net channel archive
IP firewalling TOS setting
daemon@ATHENA.MIT.EDU (Avery Pennarun)
Wed Feb 14 21:54:30 1996
Date: Wed, 14 Feb 1996 14:20:39 -0500 (EST)
From: Avery Pennarun <apenwarr@foxnet.net>
To: linux-net@vger.rutgers.edu
cc: alan@lxorguk.ukuu.org.uk
This patch ought to improve things for those of us trying to set the IPTOS
option on packets as they cross the firewall.
I think code speaks for itself. Have fun!
Avery
--- net/ipv4/ip_fw.c-1.3.61 Mon Feb 12 16:14:19 1996
+++ net/ipv4/ip_fw.c Mon Feb 12 16:14:42 1996
@@ -487,8 +487,10 @@
tosxor=f->fw_tosxor;
}
else
+ {
tosand=0xFF;
tosxor=0x00;
+ }
if(opt != 1)
{