Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/net



In article <56DD2B5F-26B1-40B7-BD84-103D3F2557CE%netbsd.org@localhost>,
Erik Fair  <fair%netbsd.org@localhost> wrote:
>So, what did we do by default: allow â??_â?? in hostnames when thatâ??s
>explicitly against standard, or not? I read the patch in the PR and
>couldnâ??t make heads or tails of it.

res_init() sets RES_NOCHECKNAME, but the resolver code knows nothing
about that flag. It is only being checked in the leaf implementing
functions:  getaddrinfo(3), gethostbyname(3), getnetbyname(3).
gethostbyname(3) respected the flag and allowed names with bad
characters to be resolved (remember all this is client-side), but
the other two did not respect the flag and failed names containing
_'s for example.

christos


Home | Main Index | Thread Index | Old Index