lkml.org 
[lkml]   [1996]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectIP transparent proxy
Date


Is IP transparent proxy broken in 2.1.15 or does it just require a patch
like the following to compile it?

--
Matthew Harrell I used to have a handle on life,
Simulation Technology Division, SAIC then it broke.
mharrell@std.saic.com


diff -urN lx-2.1.14/net/ipv4/tcp_ipv4.c linux/net/ipv4/tcp_ipv4.c
--- lx-2.1.14/net/ipv4/tcp_ipv4.c Mon Dec 9 20:06:17 1996
+++ linux/net/ipv4/tcp_ipv4.c Mon Dec 9 20:04:56 1996
@@ -1019,7 +1018,7 @@

#ifdef CONFIG_IP_TRANSPARENT_PROXY
if (IPCB(skb)->redirport)
- sk = get_sock_proxy(&tcp_prot, th->dest, saddr, th->source, daddr, dev->pa_addr, IPCB(skb)->redirport);
+ sk = get_sock_proxy(&tcp_prot, th->dest, saddr, th->source, daddr, skb->dev->pa_addr, IPCB(skb)->redirport);
else
#endif
sk = get_tcp_sock(saddr, th->source, daddr, th->dest);
diff -urN lx-2.1.14/net/ipv4/udp.c linux/net/ipv4/udp.c
--- lx-2.1.14/net/ipv4/udp.c Mon Dec 9 20:06:18 1996
+++ linux/net/ipv4/udp.c Mon Dec 9 20:04:56 1996
@@ -824,7 +824,7 @@

#ifdef CONFIG_IP_TRANSPARENT_PROXY
if (IPCB(skb)->redirport)
- sk = get_sock_proxy(&udp_prot, uh->dest, saddr, uh->source, daddr, dev->pa_addr, IPCB(skb)->redirport);
+ sk = get_sock_proxy(&udp_prot, uh->dest, saddr, uh->source, daddr, skb->dev->pa_addr, IPCB(skb)->redirport);
else
#endif
sk = get_udp_sock(uh->dest, saddr, uh->source, daddr);

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.018 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site