From e330e86abcad7cf60e46a5038ea492a9c5ca0e01 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Mon, 23 May 2022 12:45:14 +0000 Subject: [PATCH] Check if sending was successful --- dns.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/dns.h b/dns.h similarity index 79% rename from include/dns.h rename to dns.h index b6e6a90..0776827 100644 --- a/include/dns.h +++ b/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