From 96cf02139c7a0a344f194c95c8d3a64168e45c6b Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Wed, 01 Jun 2022 05:06:10 +0000
Subject: [PATCH] Compiler optimisations breaking things

---
 dns.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/dns.h b/dns.h
new file mode 100644
index 0000000..67cd7c6
--- /dev/null
+++ b/dns.h
@@ -0,0 +1,14 @@
+// DNS resource records
+#define T_A 1     // IPv4 address
+#define T_NS 2    // Name Server
+#define T_CNAME 5 // Cannonical name
+#define T_SOA 6   // State of Authority
+#define T_PTR 12  // Domain name pointer
+#define T_MX 15   // Mail exchange
+#define T_TXT 16  // Text record
+#define T_AAAA 28 // IPv6 address
+
+int reachable(unsigned char* buf, char* dns_ip);
+struct timespec resolve(unsigned char* buf, char* hostname, char* dns_ip,
+                        int query_type);
+void print_packet(unsigned char* buf);

--
Gitblit v1.10.0