Searched hist:"144361386696582 c04592f200a4c2e3339c81a25" (Results 1 – 2 of 2) sorted by relevance
/freebsd/include/ |
H A D | nsswitch.h | diff 144361386696582c04592f200a4c2e3339c81a25 Wed Nov 02 16:57:59 CET 2022 Mike Karels <karels@FreeBSD.org> getaddrinfo: distinguish missing addrs from unresolvable names
Rework getaddrinfo(3) to return different error values for unresolvable names (same as before, EAI_NONAME) and those without a requested addr (EAI_ADDRFAMILY) when using DNS. This is implemented via an added error in the nsswitch layer, NS_ADDRFAMILY, which is used only by getaddrinfo(). The error is passed through nsdispatch(3), but that routine has no changes to handle this error. The error originates in the getaddrinfo DNS layer called via nsdispatch(), and is processed by the search layer that calls nsdispatch().
While here, add a little style to returns near those that were modified.
Reviewed in https://reviews.freebsd.org/D37139 with related changes.
Reviewed by: bz MFC after: 1 month
|
/freebsd/lib/libc/net/ |
H A D | getaddrinfo.c | diff 144361386696582c04592f200a4c2e3339c81a25 Wed Nov 02 16:57:59 CET 2022 Mike Karels <karels@FreeBSD.org> getaddrinfo: distinguish missing addrs from unresolvable names
Rework getaddrinfo(3) to return different error values for unresolvable names (same as before, EAI_NONAME) and those without a requested addr (EAI_ADDRFAMILY) when using DNS. This is implemented via an added error in the nsswitch layer, NS_ADDRFAMILY, which is used only by getaddrinfo(). The error is passed through nsdispatch(3), but that routine has no changes to handle this error. The error originates in the getaddrinfo DNS layer called via nsdispatch(), and is processed by the search layer that calls nsdispatch().
While here, add a little style to returns near those that were modified.
Reviewed in https://reviews.freebsd.org/D37139 with related changes.
Reviewed by: bz MFC after: 1 month
|