aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index 61880cea1..6c7d2cd42 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -18,7 +18,14 @@
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20 20
21#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__)
22#error "Only <gnunet_util_lib.h> can be included directly."
23#endif
24
21/** 25/**
26 * @addtogroup vpn_suite VPN services and libraries
27 * @{
28 *
22 * @author Philipp Toelke 29 * @author Philipp Toelke
23 * @author Christian Grothoff 30 * @author Christian Grothoff
24 * 31 *
@@ -34,9 +41,6 @@
34#ifndef GNUNET_TUN_LIB_H 41#ifndef GNUNET_TUN_LIB_H
35#define GNUNET_TUN_LIB_H 42#define GNUNET_TUN_LIB_H
36 43
37#include "gnunet_common.h"
38#include "gnunet_crypto_lib.h"
39
40 44
41/* see http://www.iana.org/assignments/ethernet-numbers */ 45/* see http://www.iana.org/assignments/ethernet-numbers */
42#ifndef ETH_P_IPV4 46#ifndef ETH_P_IPV4
@@ -546,6 +550,29 @@ struct GNUNET_TUN_DnsSrvRecord
546 550
547 551
548/** 552/**
553 * Payload of DNS URI record (header).
554 */
555struct GNUNET_TUN_DnsUriRecord
556{
557 /**
558 * Preference for this entry (lower value is higher preference). Clients
559 * will contact hosts from the lowest-priority group first and fall back
560 * to higher priorities if the low-priority entries are unavailable. (NBO)
561 */
562 uint16_t prio GNUNET_PACKED;
563
564 /**
565 * Relative weight for records with the same priority. Clients will use
566 * the hosts of the same (lowest) priority with a probability proportional
567 * to the weight given. (NBO)
568 */
569 uint16_t weight GNUNET_PACKED;
570
571 /* followed by 'target' name */
572};
573
574
575/**
549 * Payload of DNS CERT record. 576 * Payload of DNS CERT record.
550 */ 577 */
551struct GNUNET_TUN_DnsCertRecord 578struct GNUNET_TUN_DnsCertRecord
@@ -946,3 +973,5 @@ GNUNET_TUN_compute_service_cadet_port (const struct GNUNET_HashCode *desc,
946#endif 973#endif
947 974
948/** @} */ /* end of group */ 975/** @} */ /* end of group */
976
977/** @} */ /* end of group addition */