Files
Dag-Erling Smørgrav fbe0257b56 libc/resolv: Reimplement the sortlist parser
When we switched from the BIND4 resolver to the BIND9 resolver, the
sortlist parser was inadvertently disabled due to a missing #define, and
nobody seemed to notice.  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 manual
accordingly.  The new parser accepts IPv4 and IPv6 addresses with or
without a mask or prefix length, just like the old one, except IPv6
support was a bit wonky in the original code.

Fixes:		5342d17f09 ("Update the resolver in libc to BIND9's one.")
Relnotes:	yes
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D57925
2026-07-06 14:23:37 +02:00

12 lines
335 B
Makefile

# resolv sources
.PATH: ${LIBC_SRCTOP}/resolv
SRCS+= herror.c h_errno.c mtctxres.c res_comp.c res_data.c res_debug.c \
res_findzonecut.c res_init.c res_mkquery.c res_mkupdate.c \
res_query.c res_send.c res_state.c res_update.c
SYM_MAPS+= ${LIBC_SRCTOP}/resolv/Symbol.map
CFLAGS+=-I${LIBC_SRCTOP}/net
CFLAGS+=-I${SRCTOP}/lib/libmd