patch-2.1.88 linux/net/ipv4/ip_output.c

Next file: linux/net/ipv4/ipip.c
Previous file: linux/net/ipv4/ip_masq_raudio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.87/linux/net/ipv4/ip_output.c linux/net/ipv4/ip_output.c
@@ -29,6 +29,7 @@
  *		Alexey Kuznetsov:	use new route cache
  *		Andi Kleen:		Fix broken PMTU recovery and remove
  *					some redundant tests.
+ *	Vitaly E. Lavrov	:	Transparent proxy revived after year coma.
  */
 
 #include <asm/uaccess.h>
@@ -91,6 +92,13 @@
 		daddr = opt->faddr;
 
 	err = ip_route_output(&rt, daddr, saddr, RT_TOS(sk->ip_tos) |
+#ifdef CONFIG_IP_TRANSPARENT_PROXY
+			      /* Rationale: this routine is used only
+				 by TCP, so that validity of saddr is already
+				 checked and we can safely use RTO_TPROXY.
+			       */
+			      RTO_TPROXY |
+#endif
 			      (sk->localroute||0), sk->bound_dev_if);
 	if (err)
 	{

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov