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--Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ip_forward-MASQFIX.diff"
--- 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);
--Nq2Wo0NMKNjxTN9z--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/