ipv4: Add redirect support to all protocol icmp error handlers.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b42597e2f3
commit
55be7a9c60
12 changed files with 110 additions and 16 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue