diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-10-05 18:20:17 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-10-05 18:20:17 +0000 |
commit | 1ec9a4ce4e00da8e877d6af343b7fed346765392 (patch) | |
tree | 17742c43375ff1b4a83b36cf27afa67a0b7902b0 /src/vpn/gnunet-dns-parser.h | |
parent | 81f94aa0f1209d5643a1dba9f3ce99b164ce2df5 (diff) | |
download | gnunet-1ec9a4ce4e00da8e877d6af343b7fed346765392.tar.gz gnunet-1ec9a4ce4e00da8e877d6af343b7fed346765392.zip |
pull a function I will need for service-dns out of pretty-print
Diffstat (limited to 'src/vpn/gnunet-dns-parser.h')
-rw-r--r-- | src/vpn/gnunet-dns-parser.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vpn/gnunet-dns-parser.h b/src/vpn/gnunet-dns-parser.h new file mode 100644 index 000000000..77dcd6d4e --- /dev/null +++ b/src/vpn/gnunet-dns-parser.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef _GNVPN_DNSP_H_ | ||
2 | #define _GNVPN_DNSP_H_ | ||
3 | |||
4 | /** | ||
5 | * Parses the dns-name pointed to by src+idx returning idx so, that src+idx points | ||
6 | * to the first unused char. | ||
7 | */ | ||
8 | unsigned int parse_dns_name(unsigned char* dest, const unsigned char* src, unsigned short idx); | ||
9 | |||
10 | #endif | ||