diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-16 16:04:05 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-16 16:04:05 +0000 |
commit | fe14caa055450c56088cfde9e5f008a104175319 (patch) | |
tree | 89314674d77c69fa79829f89b90cfd4e87e3008e /src/gns/gnunet-service-gns_resolver.h | |
parent | 7aa0a04c5c10da835e6e857f71c5d418f9facc47 (diff) | |
download | gnunet-fe14caa055450c56088cfde9e5f008a104175319.tar.gz gnunet-fe14caa055450c56088cfde9e5f008a104175319.zip |
-NS delegation WIP
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h index 8387e1166..a0ac2cb0b 100644 --- a/src/gns/gnunet-service-gns_resolver.h +++ b/src/gns/gnunet-service-gns_resolver.h | |||
@@ -88,13 +88,16 @@ typedef void (*ResolutionResultProcessor) (void *cls, | |||
88 | * RSL_RECORD_EXISTS: the name to lookup exists | 88 | * RSL_RECORD_EXISTS: the name to lookup exists |
89 | * RSL_RECORD_EXPIRED: the name in the record expired | 89 | * RSL_RECORD_EXPIRED: the name in the record expired |
90 | * RSL_TIMED_OUT: resolution timed out | 90 | * RSL_TIMED_OUT: resolution timed out |
91 | * RSL_DELEGATE_VPN: Found VPN delegation | ||
92 | * RSL_DELEGATE_NS: Found NS delegation | ||
91 | */ | 93 | */ |
92 | enum ResolutionStatus | 94 | enum ResolutionStatus |
93 | { | 95 | { |
94 | RSL_RECORD_EXISTS = 1, | 96 | RSL_RECORD_EXISTS = 1, |
95 | RSL_RECORD_EXPIRED = 2, | 97 | RSL_RECORD_EXPIRED = 2, |
96 | RSL_TIMED_OUT = 4, | 98 | RSL_TIMED_OUT = 4, |
97 | RSL_DELEGATE_VPN = 8 | 99 | RSL_DELEGATE_VPN = 8, |
100 | RSL_DELEGATE_NS = 16 | ||
98 | }; | 101 | }; |
99 | 102 | ||
100 | /** | 103 | /** |
@@ -133,6 +136,15 @@ struct ResolverHandle | |||
133 | /* a handle to a vpn request */ | 136 | /* a handle to a vpn request */ |
134 | struct GNUNET_VPN_RedirectionRequest *vpn_handle; | 137 | struct GNUNET_VPN_RedirectionRequest *vpn_handle; |
135 | 138 | ||
139 | /* a socket for a dns request */ | ||
140 | struct GNUNET_NETWORK_Handle *dns_sock; | ||
141 | |||
142 | /* the address of the DNS server FIXME not needed? */ | ||
143 | struct in_addr dns_ip; | ||
144 | |||
145 | /* pointer to raw dns query payload FIXME needs to be freed/NULL */ | ||
146 | char *dns_raw_packet; | ||
147 | |||
136 | /* timeout task for the lookup */ | 148 | /* timeout task for the lookup */ |
137 | GNUNET_SCHEDULER_TaskIdentifier timeout_task; | 149 | GNUNET_SCHEDULER_TaskIdentifier timeout_task; |
138 | 150 | ||