From 1629c3621e02a8e176172f44a72d155030172d35 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 2 Dec 2019 14:07:34 +0100 Subject: Prepare for license --- Readme.md | 5 +++++ netfuzz.sh | 6 ------ src/dns.c | 5 +++++ src/dns.h | 5 +++++ src/log.c | 5 +++++ src/log.h | 5 +++++ src/main.c | 5 +++++ test/netfuzz.sh | 6 ++++++ 8 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 Readme.md delete mode 100755 netfuzz.sh create mode 100755 test/netfuzz.sh diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..82bbbb6 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +# DNS + +A simple authorative DNS server implementation in c + +License: MIT diff --git a/netfuzz.sh b/netfuzz.sh deleted file mode 100755 index 42a8543..0000000 --- a/netfuzz.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -while true -do - dd if=/dev/urandom bs=$(echo $RANDOM/100 | bc) count=1 2>/dev/null | nc -cu localhost 53 > /dev/null -done diff --git a/src/dns.c b/src/dns.c index eaa032e..6cdae43 100644 --- a/src/dns.c +++ b/src/dns.c @@ -1,3 +1,8 @@ +/* dns.c + * (c) Jonas Gunz, 2019 + * License: MIT + * */ + #include "dns.h" int dns_parse_packet ( char* _buffer, int _bufflen, struct dns_message* _msg ) diff --git a/src/dns.h b/src/dns.h index c2d6d18..f93480e 100644 --- a/src/dns.h +++ b/src/dns.h @@ -1,3 +1,8 @@ +/* dns.h + * (c) Jonas Gunz, 2019 + * License: MIT + * */ + #pragma once #include diff --git a/src/log.c b/src/log.c index 197582c..df1ae6a 100644 --- a/src/log.c +++ b/src/log.c @@ -1,3 +1,8 @@ +/* log.c + * (c) Jonas Gunz, 2019 + * License: MIT + * */ + #include "log.h" const char* log_loglevel_str[5] = { diff --git a/src/log.h b/src/log.h index 8b2c881..81cea3d 100644 --- a/src/log.h +++ b/src/log.h @@ -1,3 +1,8 @@ +/* log.h + * (c) Jonas Gunz, 2019 + * License: MIT + * */ + #pragma once #include diff --git a/src/main.c b/src/main.c index cb0432e..1e96f33 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,8 @@ +/* main.c + * (c) Jonas Gunz, 2019 + * License: MIT + * */ + #include #include #include diff --git a/test/netfuzz.sh b/test/netfuzz.sh new file mode 100755 index 0000000..42a8543 --- /dev/null +++ b/test/netfuzz.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +while true +do + dd if=/dev/urandom bs=$(echo $RANDOM/100 | bc) count=1 2>/dev/null | nc -cu localhost 53 > /dev/null +done -- cgit v1.2.3