From 31afa3d8d6499d119bdf54bd37820b630c9e37e9 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Mon, 19 Oct 2020 03:00:33 +0000 Subject: [PATCH] calculating request time as struct timespec --- include/dns.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/dns.h b/include/dns.h index b6e6a90..0776827 100644 --- a/include/dns.h +++ b/include/dns.h @@ -8,5 +8,5 @@ #define T_TXT 16 // Text record #define T_AAAA 28 // IPv6 address -void resolve(unsigned char* buf, char* hostname, char* dns_ip, int query_type); +struct timespec resolve(unsigned char* buf, char* hostname, char* dns_ip, int query_type); void print_packet(unsigned char* buf); -- Gitblit v1.10.0