lkml.org 
[lkml]   [1999]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: IP Masq weirdness
On Mon, Oct 18, 1999 at 02:23:42PM -0400, Joseph Gooch wrote:
ANK is right about dev_inet_select ( and the culprit is this mail' From: =)
, try attached patch.

Thanks for the patience

--
-- Juanjo http://juanjox.kernelnotes.org/
... because there IS an OS that CAN follow your power
--- linux/net/ipv4/ip_forward.c.dist Sun Mar 21 12:22:00 1999
+++ linux/net/ipv4/ip_forward.c Wed Oct 20 15:16:58 1999
@@ -176,7 +176,7 @@
(icmph->type==ICMP_TIME_EXCEEDED))
{
#endif
- maddr = inet_select_addr(dev2, rt->rt_gateway, RT_SCOPE_UNIVERSE);
+ maddr = rt->rt_src;
fw_res = ip_fw_masq_icmp(&skb, maddr);
if (fw_res < 0) {
kfree_skb(skb);
@@ -226,7 +226,7 @@

if (maddr == 0)
#endif
- maddr = inet_select_addr(dev2, rt->rt_gateway, RT_SCOPE_UNIVERSE);
+ maddr = rt->rt_src;

if (ip_fw_masquerade(&skb, maddr) < 0) {
kfree_skb(skb);
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.527 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site