Messages in this thread Patch in this message | | | Date | Wed, 20 Oct 1999 15:21:27 -0300 | From | Juanjo Ciarlante <> | Subject | Re: 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); | |