use bitstrings first, then nibble mode

This commit is contained in:
Michael Graff
2000-02-14 21:11:52 +00:00
parent 71f5ad0517
commit 1f44824581

View File

@@ -68,12 +68,16 @@ byaddr_done(isc_task_t *task, isc_event_t *event)
dns_byaddr_destroy(&client->byaddr);
isc_event_free(&event);
if ((client->options & DNS_BYADDROPT_IPV6NIBBLE) == 0) {
if ((client->options & DNS_BYADDROPT_IPV6NIBBLE) != 0) {
error_pkt_send(client, LWRES_R_FAILURE);
return;
}
client->options &= ~DNS_BYADDROPT_IPV6NIBBLE;
/*
* Fall back to nibble reverse if the default of bitstrings
* fails.
*/
client->options |= DNS_BYADDROPT_IPV6NIBBLE;
start_byaddr(client);
return;
@@ -211,7 +215,7 @@ process_gnba(client_t *client, lwres_buffer_t *b)
/*
* Start the find.
*/
client->options = DNS_BYADDROPT_IPV6NIBBLE;
client->options = 0;
start_byaddr(client);
return;