Page MenuHomeFreeBSD

Add compat.linux.ignore_ip_recverr sysctl
ClosedPublic

Authored by trasz on Jan 17 2020, 2:14 PM.
Tags
None
Referenced Files
F111313251: D23234.diff
Sun, Mar 2, 5:24 AM
Unknown Object (File)
Mon, Feb 24, 4:12 AM
Unknown Object (File)
Jan 19 2025, 5:19 PM
Unknown Object (File)
Jan 5 2025, 7:54 AM
Unknown Object (File)
Jan 3 2025, 2:00 PM
Unknown Object (File)
Oct 18 2024, 8:37 PM
Unknown Object (File)
Oct 2 2024, 1:45 AM
Unknown Object (File)
Oct 1 2024, 4:04 AM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28734
Build 26749: arc lint + arc unit

Event Timeline

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

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.

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

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