|
static void | usage (char *argv[]) |
| usage information for streamtcp
|
|
static int | open_svr (const char *svr, int udp, struct sockaddr_storage *addr, socklen_t *addrlen) |
| open TCP socket to svr
|
|
static void | write_soa_serial_to_buf (sldns_buffer *buf, struct query_info *qinfo, uint32_t serial) |
| Append a SOA record with serial number.
|
|
static void | write_q (int fd, int udp, SSL *ssl, sldns_buffer *buf, uint16_t id, sldns_buffer *proxy_buf, int pp2_parsed, const char *strname, const char *strtype, const char *strclass) |
| write a query over the TCP fd
|
|
static void | recv_one (int fd, int udp, SSL *ssl, sldns_buffer *buf) |
| receive DNS datagram over TCP and print it
|
|
static void | print_any_answers (int fd, int udp, SSL *ssl, sldns_buffer *buf, int *num_answers, int wait_all) |
| see if we can receive any results
|
|
static int | get_random (void) |
|
static int | parse_pp2_client (const char *pp2_client, int udp, sldns_buffer *proxy_buf) |
|
static void | send_em (const char *svr, const char *pp2_client, int udp, int usessl, int noanswer, int onarrival, int delay, int num, char **qs) |
| send the TCP queries and print answers
|
|
int | main (int argc, char **argv) |
| main program for streamtcp
|
|
This program performs multiple DNS queries on a TCP stream.