#ifndef _GNVPN_DNSP_H_
#define _GNVPN_DNSP_H_
-/**
- * Parses the dns-name pointed to by src+idx returning idx so, that src+idx points
- * to the first unused char.
- */
-unsigned int parse_dns_name(unsigned char* dest, const unsigned char* src, unsigned short idx);
+#include "platform.h"
+#include "gnunet-vpn-packet.h"
+
+struct dns_pkt_parsed* parse_dns_packet(struct dns_pkt* pkt);
+
+void free_parsed_dns_packet(struct dns_pkt_parsed* ppkt);
#endif