aboutsummaryrefslogtreecommitdiff
path: root/src/dns.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-02 19:15:56 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-02 19:15:56 +0200
commit98c68ed8cc11fa8932e480256b2544c50aaa790b (patch)
tree97e7a5b0a3af20dd3e5014cfbb3e17289cb64c88 /src/dns.c
parent009dc3ba991290de19f0a5e4e4a25a33e82689cc (diff)
downloaddns-98c68ed8cc11fa8932e480256b2544c50aaa790b.tar.gz
convert to typedef structs
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dns.c b/src/dns.c
index 01fe7fa..190069c 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -5,7 +5,7 @@
#include "dns.h"
-int dns_construct_header ( char* _buffer, int _bufflen, struct dns_header* _header )
+int dns_construct_header ( char* _buffer, int _bufflen, dns_header_t* _header )
{
if ( !_buffer || !_header || _bufflen < 12 )
return -1;
@@ -32,7 +32,7 @@ int dns_construct_header ( char* _buffer, int _bufflen, struct dns_header* _head
int dns_construct_answer (
char* _buffer,
int _bufflen,
- struct dns_answer* _answer
+ dns_answer_t* _answer
) {
int ret = 0;
@@ -62,7 +62,7 @@ int dns_construct_answer (
int dns_construct_questoin (
char* _buffer,
int _bufflen,
- struct dns_question* _question
+ dns_question_t* _question
) {
//TODO Test
int ret = 0;
@@ -89,13 +89,13 @@ int dns_construct_questoin (
int dns_construct_packet (
char* _buffer,
int _bufflen,
- struct dns_message* _message
+ dns_message_t* _message
) {
return -1;
}
-int dns_destroy_struct ( struct dns_message* _msg )
+int dns_destroy_struct ( dns_message_t* _msg )
{
if ( !_msg )
return -1;
@@ -113,7 +113,7 @@ int dns_destroy_struct ( struct dns_message* _msg )
return 0;
}
-int dns_parse_packet ( char* _buffer, int _bufflen, struct dns_message* _msg )
+int dns_parse_packet ( char* _buffer, int _bufflen, dns_message_t* _msg )
{
//TODO refactor