Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net:dccp: do not report ICMP redirects to user space

DCCP shouldn't be setting sk_err on redirects as it
isn't an error condition. it should be doing exactly
what tcp is doing and leaving the error handler without
touching the socket.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Duan Jiong and committed by
David S. Miller
bd784a14 48a30569

+1
+1
net/dccp/ipv6.c
··· 135 135 136 136 if (dst) 137 137 dst->ops->redirect(dst, sk, skb); 138 + goto out; 138 139 } 139 140 140 141 if (type == ICMPV6_PKT_TOOBIG) {