lwdgnba.c File Reference

#include <config.h>
#include <isc/socket.h>
#include <isc/string.h>
#include <isc/util.h>
#include <dns/adb.h>
#include <dns/byaddr.h>
#include <dns/result.h>
#include <named/types.h>
#include <named/lwdclient.h>

Go to the source code of this file.

Functions

static void start_byaddr (ns_lwdclient_t *)
static void byaddr_done (isc_task_t *task, isc_event_t *event)
static void init_gnba (ns_lwdclient_t *client)
void ns_lwdclient_processgnba (ns_lwdclient_t *client, lwres_buffer_t *b)


Detailed Description

Definition in file lwdgnba.c.


Function Documentation

static void start_byaddr ( ns_lwdclient_t client  )  [static]

Definition at line 160 of file lwdgnba.c.

References ns_lwdclient::byaddr, byaddr_done(), ns_lwdclient::clientmgr, dns_byaddr_create(), INSIST, ISC_R_SUCCESS, ns_lwdclientmgr::mctx, ns_lwdclient::na, ns_lwdclient_errorpktsend(), ns_lwdclient::options, ns_lwdclientmgr::task, and ns_lwdclientmgr::view.

Referenced by byaddr_done(), and ns_lwdclient_processgnba().

static void byaddr_done ( isc_task_t task,
isc_event_t event 
) [static]

Definition at line 38 of file lwdgnba.c.

References AF_INET6, isc_region::base, isc_buffer::base, ns_lwdclient::byaddr, ns_lwdclient::clientmgr, dns_byaddr_destroy(), DNS_BYADDROPT_IPV6INT, dns_name_totext(), DNS_R_NCACHENXDOMAIN, DNS_R_NCACHENXRRSET, DNS_R_NXDOMAIN, DNS_R_NXRRSET, isc_netaddr::family, ns_lwdclient::gnba, INSIST, isc_event_free(), ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_SUCCESS, isc_result_totext(), ISC_TRUE, isc_region::length, ns_lwdclientmgr::lwctx, ns_lwdclient::na, name, ns_lwdclient_errorpktsend(), ns_lwdclient_log(), ns_lwdclient_sendreply(), NS_LWDCLIENT_SETSEND, ns_lwdclient::options, ns_lwdclient::pkt, r, ns_lwdclient::recv_buffer, ns_lwdclient::sendbuf, ns_lwdclient::sendlength, start_byaddr(), UNUSED, and isc_buffer::used.

Referenced by start_byaddr().

static void init_gnba ( ns_lwdclient_t client  )  [static]

Definition at line 178 of file lwdgnba.c.

References ns_lwdclient::addrs, ns_lwdclient::aliases, ns_lwdclient::aliaslen, ns_lwdclient::buffer, ns_lwdclient::gnba, isc_buffer_init, and ns_lwdclient::recv_buffer.

Referenced by ns_lwdclient_processgnba().

void ns_lwdclient_processgnba ( ns_lwdclient_t client,
lwres_buffer_t *  b 
)

Definition at line 207 of file lwdgnba.c.

References AF_INET6, ns_lwdclient::byaddr, ns_lwdclient::clientmgr, isc_netaddr::family, isc_netaddr::in, isc_netaddr::in6, init_gnba(), INSIST, isc_sockaddr_fromnetaddr(), ns_lwdclientmgr::lwctx, ns_lwdclient::na, ns_lwdclient_errorpktsend(), NS_LWDCLIENT_ISRECVDONE, ns_lwdclient_log(), ns_lwdclient::options, ns_lwdclient::pkt, REQUIRE, start_byaddr(), and isc_netaddr::type.

Referenced by process_request().


Generated on Tue Apr 28 17:41:07 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha