From 0f826d0a73bb1bbed0dd38b914be40ca8dc491ea Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Sun, 18 Oct 2020 12:35:02 +0000 Subject: [PATCH] Buf is passed in so can be read separately, removed functions from header --- main.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/main.c b/main.c index 1e36b9e..cc01df3 100644 --- a/main.c +++ b/main.c @@ -2,6 +2,8 @@ int main(int argc, char** argv) { - resolve("google.com", "1.1.1.1", T_A, 1); + unsigned char buf[65536]; + resolve(buf, "google.com", "1.1.1.1", T_A); + print_packet(buf); return 0; } -- Gitblit v1.10.0