struct tapi_dnsperf_opt

Overview

dnsperf specific options. More…

#include <tapi_dnsperf.h>

struct tapi_dnsperf_opt {
    // fields

    const char* local_addr;
    tapi_job_opt_uint_t bufsize;
    tapi_job_opt_uint_t clients;
    const char* datafile;
    bool enable_dnssec_ok;
    bool enable_edns0;
    const char* edns_opt;
    tapi_dnsperf_addr_family addr_family;
    tapi_job_opt_uint_t limit;
    tapi_job_opt_uint_t runs_through_file;
    tapi_job_opt_uint_t port;
    tapi_job_opt_uint_t num_queries;
    tapi_job_opt_uint_t max_qps;
    tapi_dnsperf_transport_mode transport_mode;
    const char* server;
    tapi_job_opt_uint_t stats_interval;
    tapi_job_opt_uint_t timeout;
    tapi_job_opt_uint_t threads;
    bool verbose;
    bool stdout_only;
    tapi_job_opt_uint_t local_port;
    const char* ext_opt;
    te_vec queries;
    const char* dnsperf_path;
};

Detailed Documentation

dnsperf specific options.

Fields

const char* local_addr

the local address from which to send requests

tapi_job_opt_uint_t bufsize

socket send/receive buffer size in kilobytes

tapi_job_opt_uint_t clients

the number of clients to act as

const char* datafile

the input data file (default: stdin)

bool enable_dnssec_ok

set the DNSSEC OK bit (implies EDNS)

bool enable_edns0

enable EDNS 0

const char* edns_opt

send EDNS option

tapi_dnsperf_addr_family addr_family

address family of DNS transport, inet, inet6 or any

tapi_job_opt_uint_t limit

run for at most this many seconds

tapi_job_opt_uint_t runs_through_file

run through input at most N times

tapi_job_opt_uint_t port

the port on which to query the server

tapi_job_opt_uint_t num_queries

the maximum number of queries outstanding

tapi_job_opt_uint_t max_qps

limit the number of queries per second

tapi_dnsperf_transport_mode transport_mode

set transport mode: udp, tcp, dot or doh

const char* server

the server to query

tapi_job_opt_uint_t stats_interval

print qps statistics every N seconds

tapi_job_opt_uint_t timeout

the timeout for query completion in seconds

tapi_job_opt_uint_t threads

the number of threads to run

bool verbose

verbose: report each query and additional information to stdout

bool stdout_only

log warnings and errors to stdout instead of stderr

tapi_job_opt_uint_t local_port

the local port from which to send queries

const char* ext_opt

Suppress various messages and warnings

te_vec queries

list of hosts to query (see tapi_dnsperf_opt_query_add_a)

const char* dnsperf_path

Path to dnsperf exec (if NULL then “dnsperf”).