control.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2007, 2009-2012, 2014, 2015  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 2001-2003  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: control.h,v 1.38 2012/01/31 23:47:31 tbox Exp $ */
00019 
00020 #ifndef NAMED_CONTROL_H
00021 #define NAMED_CONTROL_H 1
00022 
00023 /*! \file
00024  * \brief
00025  * The name server command channel.
00026  */
00027 
00028 #include <isccc/types.h>
00029 
00030 #include <isccfg/aclconf.h>
00031 
00032 #include <named/types.h>
00033 
00034 #define NS_CONTROL_PORT                 953
00035 
00036 #define NS_COMMAND_STOP         "stop"
00037 #define NS_COMMAND_HALT         "halt"
00038 #define NS_COMMAND_RELOAD       "reload"
00039 #define NS_COMMAND_RECONFIG     "reconfig"
00040 #define NS_COMMAND_REFRESH      "refresh"
00041 #define NS_COMMAND_RETRANSFER   "retransfer"
00042 #define NS_COMMAND_DUMPSTATS    "stats"
00043 #define NS_COMMAND_QUERYLOG     "querylog"
00044 #define NS_COMMAND_DUMPDB       "dumpdb"
00045 #define NS_COMMAND_SECROOTS     "secroots"
00046 #define NS_COMMAND_TRACE        "trace"
00047 #define NS_COMMAND_NOTRACE      "notrace"
00048 #define NS_COMMAND_FLUSH        "flush"
00049 #define NS_COMMAND_FLUSHNAME    "flushname"
00050 #define NS_COMMAND_FLUSHTREE    "flushtree"
00051 #define NS_COMMAND_STATUS       "status"
00052 #define NS_COMMAND_TSIGLIST     "tsig-list"
00053 #define NS_COMMAND_TSIGDELETE   "tsig-delete"
00054 #define NS_COMMAND_FREEZE       "freeze"
00055 #define NS_COMMAND_UNFREEZE     "unfreeze"
00056 #define NS_COMMAND_THAW         "thaw"
00057 #define NS_COMMAND_TIMERPOKE    "timerpoke"
00058 #define NS_COMMAND_RECURSING    "recursing"
00059 #define NS_COMMAND_NULL         "null"
00060 #define NS_COMMAND_NOTIFY       "notify"
00061 #define NS_COMMAND_VALIDATION   "validation"
00062 #define NS_COMMAND_SCAN         "scan"
00063 #define NS_COMMAND_SIGN         "sign"
00064 #define NS_COMMAND_LOADKEYS     "loadkeys"
00065 #define NS_COMMAND_ADDZONE      "addzone"
00066 #define NS_COMMAND_MODZONE      "modzone"
00067 #define NS_COMMAND_DELZONE      "delzone"
00068 #define NS_COMMAND_SHOWZONE     "showzone"
00069 #define NS_COMMAND_SYNC         "sync"
00070 #define NS_COMMAND_SIGNING      "signing"
00071 #define NS_COMMAND_ZONESTATUS   "zonestatus"
00072 #define NS_COMMAND_NTA          "nta"
00073 #define NS_COMMAND_TESTGEN      "testgen"
00074 #define NS_COMMAND_MKEYS        "managed-keys"
00075 
00076 isc_result_t
00077 ns_controls_create(ns_server_t *server, ns_controls_t **ctrlsp);
00078 /*%<
00079  * Create an initial, empty set of command channels for 'server'.
00080  */
00081 
00082 void
00083 ns_controls_destroy(ns_controls_t **ctrlsp);
00084 /*%<
00085  * Destroy a set of command channels.
00086  *
00087  * Requires:
00088  *      Shutdown of the channels has completed.
00089  */
00090 
00091 isc_result_t
00092 ns_controls_configure(ns_controls_t *controls, const cfg_obj_t *config,
00093                       cfg_aclconfctx_t *aclconfctx);
00094 /*%<
00095  * Configure zero or more command channels into 'controls'
00096  * as defined in the configuration parse tree 'config'.
00097  * The channels will evaluate ACLs in the context of
00098  * 'aclconfctx'.
00099  */
00100 
00101 void
00102 ns_controls_shutdown(ns_controls_t *controls);
00103 /*%<
00104  * Initiate shutdown of all the command channels in 'controls'.
00105  */
00106 
00107 isc_result_t
00108 ns_control_docommand(isccc_sexpr_t *message, isc_buffer_t **text);
00109 
00110 #endif /* NAMED_CONTROL_H */

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