]> git.ipfire.org Git - thirdparty/curl.git/commit
connect: on linux, enable reporting of all ICMP errors on UDP sockets
authorCristian Rodríguez <crodriguez@owncloud.com>
Thu, 17 Dec 2020 14:27:03 +0000 (11:27 -0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Dec 2020 14:24:08 +0000 (15:24 +0100)
commitd13179db3e88ddcca087175e35332c2b04b08770
treee4acb4bc09f98d6bd378aa64b3313858539ed68b
parenta7696c73436f643d5d31ce0c3d48d282c79f4b5d
connect: on linux, enable reporting of all ICMP errors on UDP sockets

The linux kernel does not report all ICMP errors back to userspace due
to historical reasons.

IP*_RECVERR sockopt must be turned on to have the correct behaviour
which is to pass all ICMP errors to userspace.

See https://bugzilla.kernel.org/show_bug.cgi?id=202355

Closes #6341
lib/connect.c