]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/ip_forward.c
Pull documentation into release branch
[linux-2.6-omap-h63xx.git] / net / ipv4 / ip_forward.c
index 8c95cf09f87ac213e81b0a2421d568a4a7a6bd92..877da3ed52e2bef524d12cc88f2d23aa33b69502 100644 (file)
@@ -40,7 +40,7 @@
 #include <net/route.h>
 #include <net/xfrm.h>
 
-static inline int ip_forward_finish(struct sk_buff *skb)
+static int ip_forward_finish(struct sk_buff *skb)
 {
        struct ip_options * opt = &(IPCB(skb)->opt);
 
@@ -105,7 +105,7 @@ int ip_forward(struct sk_buff *skb)
         *      We now generate an ICMP HOST REDIRECT giving the route
         *      we calculated.
         */
-       if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr)
+       if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb->sp)
                ip_rt_send_redirect(skb);
 
        skb->priority = rt_tos2priority(iph->tos);