Page MenuHomeFreeBSD

libc/resolv: Reimplement the sortlist parser
Needs ReviewPublic

Authored by des on Sun, Jun 28, 8:13 AM.
Tags
None
Referenced Files
F160949000: D57925.diff
Mon, Jun 29, 8:45 AM
Unknown Object (File)
Sun, Jun 28, 9:56 AM
Subscribers

Details

Reviewers
kevans
markj
Summary

When we switched from the BIND4 resolver to the BIND9 resolver, the
sortlist parser was inadvertently disabled, and nobody noticed. The
sorting code remained enabled in the resolver, but there was no way to
set a sort order.

Reimplement the sortlist parser, but correctly, and update the
documentation accordingly. The new parser accepts IPv4 and IPv6
addresses with or without a prefix length.

Fixes: 5342d17f09a8 ("Update the resolver in libc to BIND9's one.")
Relnotes: yes

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74352
Build 71235: arc lint + arc unit