aboutsummaryrefslogtreecommitdiff
path: root/src/gns/nss/nss_gns_query.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2014-02-07 23:11:51 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2014-02-07 23:11:51 +0000
commitea14803789efc976c0f9d89097b1785a9325968d (patch)
treebf0d21cf7f77de131fdade0e1f435bbb25d28479 /src/gns/nss/nss_gns_query.c
parentbfe1a23a86253029afddd32e45b9802fabd48832 (diff)
downloadgnunet-ea14803789efc976c0f9d89097b1785a9325968d.tar.gz
gnunet-ea14803789efc976c0f9d89097b1785a9325968d.zip
fix reverse DNS lookup, prepare GNS reverse lookup
Diffstat (limited to 'src/gns/nss/nss_gns_query.c')
-rw-r--r--src/gns/nss/nss_gns_query.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gns/nss/nss_gns_query.c b/src/gns/nss/nss_gns_query.c
index b90fd6d05..9e1cdde34 100644
--- a/src/gns/nss/nss_gns_query.c
+++ b/src/gns/nss/nss_gns_query.c
@@ -106,4 +106,37 @@ gns_resolve_name (int af,
106 return 0; 106 return 0;
107} 107}
108 108
109#ifndef NSS_IPV6_ONLY
110/**
111 * Wrapper function that uses gnunet-namecache cli tool to resolve
112 * an hostnames from IPv4/6 addresses.
113 *
114 * @param addr the ip to resolve
115 * @param u the userdata (result struct)
116 * @return -1 on error else 0
117 */
118int
119namecache_resolve_ip4 (const ipv4_address_t* addr,
120 struct userdata *u)
121{
122 return -1;
123}
124#endif
125
126#ifndef NSS_IPV4_ONLY
127/**
128 * Wrapper function that uses gnunet-namecache cli tool to resolve
129 * an hostnames from IPv4/6 addresses.
130 *
131 * @param addr the ip to resolve
132 * @param u the userdata (result struct)
133 * @return -1 on error else 0
134 */
135int
136namecache_resolve_ip6 (const ipv6_address_t* addr,
137 struct userdata *u)
138{
139 return -1;
140}
141#endif
109/* end of nss_gns_query.c */ 142/* end of nss_gns_query.c */