|
unbound
0.1
|
The remote control utility contacts the unbound server over ssl and sends the command, receives the answer, and displays the result from the commandline. More...
#include "config.h"#include "util/log.h"#include "util/config_file.h"#include "util/locks.h"#include "util/net_help.h"#include "util/shm_side/shm_main.h"#include "daemon/stats.h"#include "sldns/wire2str.h"#include "sldns/pkthdr.h"Functions | |
| static void | usage (void) |
| Give unbound-control usage, and exit (1). More... | |
| static void | print_stats_shm (const char *cfgfile) |
| print statistics from shm memory segment | |
| static void | ssl_err (const char *s) |
| exit with ssl error | |
| static SSL_CTX * | setup_ctx (struct config_file *cfg) |
| setup SSL context | |
| static int | contact_server (const char *svr, struct config_file *cfg, int statuscmd) |
| contact the server with TCP connect | |
| static SSL * | setup_ssl (SSL_CTX *ctx, int fd, struct config_file *cfg) |
| setup SSL on the connection | |
| static void | send_file (SSL *ssl, FILE *in, char *buf, size_t sz) |
| send stdin to server | |
| static void | send_eof (SSL *ssl) |
| send end-of-file marker to server | |
| static int | go_cmd (SSL *ssl, int quiet, int argc, char *argv[]) |
| send command and display result | |
| static int | go (const char *cfgfile, char *svr, int quiet, int argc, char *argv[]) |
| go ahead and read config, contact server and perform command and display | |
| int | main (int argc, char *argv[]) |
| Main routine for unbound-control. | |
Variables | |
| int | optind |
| getopt global, in case header files fail to declare it. More... | |
| char * | optarg |
| getopt global, in case header files fail to declare it. More... | |
The remote control utility contacts the unbound server over ssl and sends the command, receives the answer, and displays the result from the commandline.
|
static |
Give unbound-control usage, and exit (1).
References inhibit_zero, ub_server_stats::max_query_list_size, ub_stats_info::mesh_dropped, ub_stats_info::mesh_jostled, ub_stats_info::mesh_num_reply_states, ub_stats_info::mesh_num_states, ub_stats_info::mesh_replies_sent, ub_stats_info::mesh_replies_sum_wait_sec, ub_stats_info::mesh_time_median, ub_server_stats::num_queries, ub_server_stats::num_queries_ip_ratelimited, ub_server_stats::num_queries_missed_cache, ub_server_stats::num_queries_prefetch, ub_server_stats::num_query_dnscrypt_cert, ub_server_stats::num_query_dnscrypt_cleartext, ub_server_stats::num_query_dnscrypt_crypted, ub_server_stats::num_query_dnscrypt_crypted_malformed, print_hist(), print_mem(), print_uptime(), SQ, ub_server_stats::sum_query_list_size, ub_stats_info::svr, ub_server_stats::tcp_accept_usage, timehist_setup(), timeval_divide(), and ub_server_stats::zero_ttl_responses.
Referenced by main().
| int optind |
getopt global, in case header files fail to declare it.
Referenced by main().
| char* optarg |
getopt global, in case header files fail to declare it.
Referenced by main().
1.8.13