expose dns_query and build_dns_packet()

pull/31/head
Ryan Tharp 6 years ago
parent c8c4a0da10
commit 529cd4e6a3

@ -9,6 +9,20 @@
struct dnsc_answer_request;
#define DNC_BUF_SIZE 512
/// a question to be asked remotely (the actual bytes to send on the wire)
// header, question
struct dns_query
{
uint16_t length;
// char *url;
unsigned char request[DNC_BUF_SIZE];
// uint16_t reqType;
};
struct dns_query *
build_dns_packet(char *url, uint16_t id, uint16_t reqType);
/// hook function to handle an dns client request
// should we pass by llarp::Addr
// not as long as we're supporting raw

@ -23,6 +23,8 @@
dns_tracker dns_udp_tracker;
/*
#define DNC_BUF_SIZE 512
/// a question to be asked remotely (the actual bytes to send on the wire)
// header, question
@ -33,6 +35,7 @@ struct dns_query
unsigned char request[DNC_BUF_SIZE];
// uint16_t reqType;
};
*/
/// build a DNS question packet
struct dns_query *

Loading…
Cancel
Save