diff --git a/include/llarp/dnsc.hpp b/include/llarp/dnsc.hpp index 2cdb480fe..9e7b293a0 100644 --- a/include/llarp/dnsc.hpp +++ b/include/llarp/dnsc.hpp @@ -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 diff --git a/llarp/dnsc.cpp b/llarp/dnsc.cpp index 2b9138b05..eb3dbc94b 100644 --- a/llarp/dnsc.cpp +++ b/llarp/dnsc.cpp @@ -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 *