Check that DNSTAP captures forwarded UPDATE responses

(cherry picked from commit 2b7128fede)
This commit is contained in:
Mark Andrews
2020-11-09 16:26:56 +11:00
parent 14fe29b76d
commit 23d2d95d28
5 changed files with 96 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ usage() {
fprintf(stderr, "args:\n");
fprintf(stderr, "\t--edns-version\n");
fprintf(stderr, "\t--enable-dnsrps\n");
fprintf(stderr, "\t--enable-dnstap\n");
fprintf(stderr, "\t--gethostname\n");
fprintf(stderr, "\t--gssapi\n");
fprintf(stderr, "\t--have-dlopen\n");
@@ -74,6 +75,14 @@ main(int argc, char **argv) {
#endif /* ifdef USE_DNSRPS */
}
if (strcmp(argv[1], "--enable-dnstap") == 0) {
#ifdef HAVE_DNSTAP
return (0);
#else /* ifdef HAVE_DNSTAP */
return (1);
#endif /* ifdef HAVE_DNSTAP */
}
if (strcmp(argv[1], "--gethostname") == 0) {
char hostname[MAXHOSTNAMELEN];
int n;