diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-10-26 13:55:54 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-10-26 13:55:54 +0000 |
commit | 8d058446a4a288d87f58a021622ecad6371519cb (patch) | |
tree | 5435a03de6b8333f672bfaaf7e3940a14430c261 /src/include/block_dns.h | |
parent | b9b331a978f134af77c64011d17593ed4c6e8382 (diff) | |
download | gnunet-8d058446a4a288d87f58a021622ecad6371519cb.tar.gz gnunet-8d058446a4a288d87f58a021622ecad6371519cb.zip |
renamed file as per policy
Diffstat (limited to 'src/include/block_dns.h')
-rw-r--r-- | src/include/block_dns.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/include/block_dns.h b/src/include/block_dns.h new file mode 100644 index 000000000..d8f3fa50e --- /dev/null +++ b/src/include/block_dns.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef _GNVPN_BLOCKDNS_H_ | ||
2 | #define _GNVPN_BLOCKDNS_H_ | ||
3 | |||
4 | #include "gnunet_common.h" | ||
5 | |||
6 | /** | ||
7 | * Bitmask describing what ip-services are supported by services | ||
8 | * It is 2 bytes long | ||
9 | */ | ||
10 | struct GNUNET_ipservices { | ||
11 | unsigned UDP:1 GNUNET_PACKED; | ||
12 | unsigned TCP:1 GNUNET_PACKED; | ||
13 | unsigned RESERVED:14 GNUNET_PACKED; | ||
14 | }; | ||
15 | |||
16 | /** | ||
17 | * This is the structure describing an dns-record such as www.gnunet. | ||
18 | */ | ||
19 | struct GNUNET_DNS_Record | ||
20 | { | ||
21 | /** | ||
22 | * The peer providing this service | ||
23 | */ | ||
24 | struct GNUNET_PeerIdentity peer; | ||
25 | |||
26 | /** | ||
27 | * The descriptor for the service | ||
28 | * (a peer may provide more than one service) | ||
29 | */ | ||
30 | GNUNET_HashCode service_descriptor; | ||
31 | |||
32 | /** | ||
33 | * What connection-types (UDP, TCP, ...) are supported by the service | ||
34 | */ | ||
35 | struct GNUNET_ipservices connectiontypes; | ||
36 | |||
37 | /** | ||
38 | * The length of the name of the service | ||
39 | */ | ||
40 | unsigned char namelen; | ||
41 | |||
42 | /** | ||
43 | * The name of the service | ||
44 | * This is namelen bytes | ||
45 | */ | ||
46 | char name[1]; | ||
47 | }; | ||
48 | |||
49 | #endif | ||