netdev
[Top] [All Lists]

[PATCH] no-brainer patch

To: netdev@xxxxxxxxxxx
Subject: [PATCH] no-brainer patch
From: Rusty Russell <rusty@xxxxxxxxxxxxxxxx>
Date: Thu, 24 Aug 2000 19:06:19 +1000
Cc: davem@xxxxxxxxxx, kuznet@xxxxxxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
rt needs to be reset if skb rerouted by route_me_harder.

BTW, I'm now convinced that route_me_harder is a bad idea: doing
as a part of the netfilter architecture is too hard, and should be
left to the netfilter modules which actually hack the packets.  But I
want 2.4.0 in our lifetime (maybe 2.4.1).

Rusty.

diff -urN -X /tmp/filezRIWiT --minimal linux-2.4.0-test7-7/net/ipv4/ip_output.c 
working-2.4.0-test7-7/net/ipv4/ip_output.c
--- linux-2.4.0-test7-7/net/ipv4/ip_output.c    Tue Mar 28 04:35:56 2000
+++ working-2.4.0-test7-7/net/ipv4/ip_output.c  Thu Aug 24 16:48:33 2000
@@ -327,6 +327,7 @@
                        kfree_skb(skb);
                        return -EHOSTUNREACH;
                }
+               rt = (struct rtable *)skb->dst;
        }
 #endif
 
--
Hacking time.

<Prev in Thread] Current Thread [Next in Thread>