notify.c File Reference

This module implements notify as in RFC1996. More...

#include <config.h>
#include <isc/log.h>
#include <isc/print.h>
#include <dns/message.h>
#include <dns/rdataset.h>
#include <dns/result.h>
#include <dns/tsig.h>
#include <dns/view.h>
#include <dns/zone.h>
#include <dns/zt.h>
#include <named/log.h>
#include <named/notify.h>

Go to the source code of this file.

Functions

static void notify_log (ns_client_t *client, int level, const char *fmt,...)
static void respond (ns_client_t *client, isc_result_t result)
void ns_notify_start (ns_client_t *client)
 Examines the incoming message to determine appropriate zone. Returns FORMERR if there is not exactly one question. Returns REFUSED if we do not serve the listed zone. Pass the message to the zone module for processing and returns the return status.


Detailed Description

This module implements notify as in RFC1996.

Definition in file notify.c.


Function Documentation

static void notify_log ( ns_client_t client,
int  level,
const char *  fmt,
  ... 
) [static]

Definition at line 42 of file notify.c.

References DNS_LOGCATEGORY_NOTIFY, ns_client_logv(), and NS_LOGMODULE_NOTIFY.

static void respond ( ns_client_t client,
isc_result_t  result 
) [static]

Definition at line 52 of file notify.c.

References dns_message_reply(), DNS_MESSAGEFLAG_AA, dns_rcode_noerror, dns_result_torcode(), dns_message::flags, ISC_FALSE, ISC_R_SUCCESS, ISC_TRUE, ns_client::message, ns_client_next(), ns_client_send(), and dns_message::rcode.

Referenced by forward_fail(), ns_notify_start(), ns_update_start(), and updatedone_action().

void ns_notify_start ( ns_client_t client  ) 

Examines the incoming message to determine appropriate zone. Returns FORMERR if there is not exactly one question. Returns REFUSED if we do not serve the listed zone. Pass the message to the zone module for processing and returns the return status.

Requires

Definition at line 76 of file notify.c.

References dns_message_currentname(), dns_message_firstname(), dns_message_gettsigkey(), dns_message_nextname(), dns_name_format(), DNS_NAME_FORMATSIZE, DNS_R_FORMERR, DNS_R_NOTAUTH, DNS_SECTION_QUESTION, DNS_SECTION_ZONE, dns_zone_detach(), dns_zone_gettype(), dns_zone_master, dns_zone_notifyreceive(), dns_zone_slave, dns_zone_stub, dns_zt_find(), ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_LOG_INFO, ISC_LOG_NOTICE, ISC_R_NOMORE, ISC_R_SUCCESS, ns_client::message, namebuf, notify_log(), ns_client_getsockaddr(), respond(), tsigkey, dns_rdataset::type, ns_client::view, zone, and dns_view::zonetable.

Referenced by client_request().


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