ipv4: Add redirect support to all protocol icmp error handlers.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user