From b79b3a7406bc87fc57f4280449d809afad18ae04 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Mon, 23 May 2022 12:51:16 +0000
Subject: [PATCH] Fix alignment with clang-format

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

diff --git a/dns.h b/dns.h
new file mode 100644
index 0000000..e2d3f88
--- /dev/null
+++ b/dns.h
@@ -0,0 +1,13 @@
+// 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
+
+struct timespec resolve(unsigned char* buf, char* hostname, char* dns_ip,
+                        int query_type);
+void print_packet(unsigned char* buf);

--
Gitblit v1.10.0