commit | 55be7a9c6074f749d617a7fc1914c9a23505438c | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Wed Jul 11 21:27:49 2012 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 11 21:27:49 2012 -0700 |
tree | 507268878abc1c5f5476823264b6f9f8acefa205 | |
parent | b42597e2f36e2043756aa7462faddf630962f061 [diff] [blame] |
ipv4: Add redirect support to all protocol icmp error handlers. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 659ddfb..ff0f071 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c
@@ -218,6 +218,8 @@ if (type == ICMP_DEST_UNREACH && code == ICMP_FRAG_NEEDED) ipv4_sk_update_pmtu(skb, sk, info); + else if (type == ICMP_REDIRECT) + ipv4_sk_redirect(skb, sk); /* Report error on raw socket, if: 1. User requested ip_recverr.