Skip to content
Snippets Groups Projects
Commit b43da226 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

kdig: add +[no]tsig option

parent 3b175a2b
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,9 @@ Show authority section.
.BR + [ no ] additional
Show additional section.
.TP
.BR + [ no ] tsig
Show TSIG pseudosection.
.TP
.BR + [ no ] stats
Show trailing packet statistics.
.TP
......
......@@ -407,6 +407,26 @@ static int opt_noadditional(const char *arg, void *query)
query_t *q = query;
q->style.show_additional = false;
q->style.show_edns = false;
q->style.show_tsig = false;
return KNOT_EOK;
}
static int opt_tsig(const char *arg, void *query)
{
query_t *q = query;
q->style.show_tsig = true;
return KNOT_EOK;
}
static int opt_notsig(const char *arg, void *query)
{
query_t *q = query;
q->style.show_tsig = false;
return KNOT_EOK;
}
......@@ -692,6 +712,9 @@ static const param_t dig_opts2[] = {
{ "additional", ARG_NONE, opt_additional },
{ "noadditional", ARG_NONE, opt_noadditional },
{ "tsig", ARG_NONE, opt_tsig },
{ "notsig", ARG_NONE, opt_notsig },
{ "stats", ARG_NONE, opt_stats },
{ "nostats", ARG_NONE, opt_nostats },
......@@ -1192,6 +1215,7 @@ static void dig_help(void)
" +[no]answer Show answer section.\n"
" +[no]authority Show authority section.\n"
" +[no]additional Show additional section.\n"
" +[no]tsig Show TSIG pseudosection.\n"
" +[no]stats Show trailing packet statistics.\n"
" +[no]class Show DNS class.\n"
" +[no]ttl Show TTL value.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment