Page MenuHomeFreeBSD

Add compat.linux.ignore_ip_recverr sysctl

Authored by trasz on Jan 17 2020, 2:14 PM.



Add compat.linux.ignore_ip_recverr sysctl. This is a workaround
for missing IP_RECVERR setsockopt(2) support. Without it, DNS
resolution is broken for glibc >= 2.30 (glibc BZ #24047).

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

trasz created this revision.Jan 17 2020, 2:14 PM
trasz edited the summary of this revision. (Show Details)Jan 17 2020, 2:43 PM

Why a sysctl for this one instead of just whine loudly and carry on like most other cases?

trasz added a comment.Jan 17 2020, 2:53 PM

Because it would be way too verbose - it’s being used all the time, every time something attempts to resolve a name. The sysctl is just a debugging aid, in case it would break some use case.

trasz added a comment.Jan 17 2020, 3:00 PM

(Also, I have another change that adds generic logging of unsupported options in setsockopt and getsockopt in the queue.)

trasz added a comment.Mon, Jan 27, 3:37 PM


This revision was not accepted when it landed; it landed in state Needs Review.Tue, Jan 28, 1:52 PM
This revision was automatically updated to reflect the committed changes.