diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_forward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 8c95cf09f87a..afbf938836f5 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c | |||
@@ -105,7 +105,7 @@ int ip_forward(struct sk_buff *skb) | |||
105 | * We now generate an ICMP HOST REDIRECT giving the route | 105 | * We now generate an ICMP HOST REDIRECT giving the route |
106 | * we calculated. | 106 | * we calculated. |
107 | */ | 107 | */ |
108 | if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr) | 108 | if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb->sp) |
109 | ip_rt_send_redirect(skb); | 109 | ip_rt_send_redirect(skb); |
110 | 110 | ||
111 | skb->priority = rt_tos2priority(iph->tos); | 111 | skb->priority = rt_tos2priority(iph->tos); |