diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-12 06:27:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-12 06:27:49 +0200 |
commit | 55be7a9c6074f749d617a7fc1914c9a23505438c (patch) | |
tree | 507268878abc1c5f5476823264b6f9f8acefa205 /net/ipv4/raw.c | |
parent | ipv4: Add ipv4_redirect() and ipv4_sk_redirect() helper functions. (diff) | |
download | linux-55be7a9c6074f749d617a7fc1914c9a23505438c.tar.xz linux-55be7a9c6074f749d617a7fc1914c9a23505438c.zip |
ipv4: Add redirect support to all protocol icmp error handlers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/raw.c')
-rw-r--r-- | net/ipv4/raw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 659ddfb10947..ff0f071969ea 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -218,6 +218,8 @@ static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info) 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. |