Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44671
b: refs/heads/master
c: 14fb8a7
h: refs/heads/master
i:
  44669: a77cc1d
  44667: 7712032
  44663: 6507cbb
  44655: db7a839
  44639: 5a993ac
  44607: a89fc76
  44543: 5b94516
v: v3
  • Loading branch information
Li Yewang authored and David S. Miller committed Dec 18, 2006
1 parent 5ce3e94 commit f6839cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9fc00cca8327dba3ec2a6c727f4b5b1c449f2a2
refs/heads/master: 14fb8a764786e37ac26a2175638115f21980e5a3
3 changes: 2 additions & 1 deletion trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,8 @@ void ip_rt_send_redirect(struct sk_buff *skb)
/* Check for load limit; set rate_last to the latest sent
* redirect.
*/
if (time_after(jiffies,
if (rt->u.dst.rate_tokens == 0 ||
time_after(jiffies,
(rt->u.dst.rate_last +
(ip_rt_redirect_load << rt->u.dst.rate_tokens)))) {
icmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, rt->rt_gateway);
Expand Down

0 comments on commit f6839cb

Please sign in to comment.