pipequeries.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2014, 2015, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <isc/sockaddr.h>
#include <dns/dispatch.h>
#include <dns/fixedname.h>
#include <dns/rdataset.h>
#include <dns/resolver.h>
if ((x) != ISC_R_SUCCESS) { \
exit(-1); \
} \
}
#define PORT 5300
#define TIMEOUT 30
static dns_requestmgr_t *requestmgr;
static isc_sockaddr_t srcaddr;
static isc_sockaddr_t dstaddr;
static int onfly;
static void
char output[1024];
exit(-1);
}
exit(-1);
}
}
&outbuf);
(char *)isc_buffer_base(&outbuf));
if (--onfly == 0)
return;
}
static isc_result_t
static char host[256];
int c;
if (c == EOF)
return ISC_R_NOMORE;
onfly++;
dns_rootname, 0, NULL);
return ISC_R_SUCCESS;
}
static void
do {
} while (result == ISC_R_SUCCESS);
if (onfly == 0)
return;
}
int
if (argc > 1)
dispatchmgr = NULL;
dispatchv4 = NULL;
4096, 4, 2, 3, 5,
requestmgr = NULL;
&requestmgr));
(void)isc_app_run();
return (0);
}