summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-04 10:50:45 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-05 23:19:56 -0400
commit2abb5b3b10e3a9ed8ffd0189e8a1828ec086f69e (patch)
treed6fc801ae4c799770eb676bc5872269f1b4eb3f0 /src/basic
parent8e98476e143519aa3f0a2e0db6fccfe9ef134cbc (diff)
test-nss: test the resolution of various names
nss-dns is also "tested". It should be almost always available, and provides a reference for comparison.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/nss-util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/basic/nss-util.h b/src/basic/nss-util.h
index 14e950869d..bf7c4854fc 100644
--- a/src/basic/nss-util.h
+++ b/src/basic/nss-util.h
@@ -171,6 +171,19 @@ typedef enum nss_status (*_nss_gethostbyname3_r_t)(
int32_t *ttlp,
char **canonp);
+typedef enum nss_status (*_nss_gethostbyname2_r_t)(
+ const char *name,
+ int af,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);
+
+typedef enum nss_status (*_nss_gethostbyname_r_t)(
+ const char *name,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);
+
typedef enum nss_status (*_nss_gethostbyaddr2_r_t)(
const void* addr, socklen_t len,
int af,
@@ -178,3 +191,9 @@ typedef enum nss_status (*_nss_gethostbyaddr2_r_t)(
char *buffer, size_t buflen,
int *errnop, int *h_errnop,
int32_t *ttlp);
+typedef enum nss_status (*_nss_gethostbyaddr_r_t)(
+ const void* addr, socklen_t len,
+ int af,
+ struct hostent *host,
+ char *buffer, size_t buflen,
+ int *errnop, int *h_errnop);