aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.h')
-rw-r--r--src/vpn/gnunet-daemon-vpn.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.h b/src/vpn/gnunet-daemon-vpn.h
index 36f3dcbe7..e0e688f99 100644
--- a/src/vpn/gnunet-daemon-vpn.h
+++ b/src/vpn/gnunet-daemon-vpn.h
@@ -72,10 +72,35 @@ struct map_entry {
72 struct GNUNET_vpn_service_descriptor desc; 72 struct GNUNET_vpn_service_descriptor desc;
73 struct GNUNET_MESH_Tunnel *tunnel; 73 struct GNUNET_MESH_Tunnel *tunnel;
74 uint16_t namelen; 74 uint16_t namelen;
75 uint64_t additional_ports; 75 char additional_ports[8192];
76 /** 76 /**
77 * After this struct the name is located in DNS-Format! 77 * After this struct the name is located in DNS-Format!
78 */ 78 */
79}; 79};
80 80
81/**
82 * Sets a bit active in a bitArray.
83 *
84 * @param bitArray memory area to set the bit in
85 * @param bitIdx which bit to set
86 */
87void setBit (char *bitArray, unsigned int bitIdx);
88
89/**
90 * Clears a bit from bitArray.
91 *
92 * @param bitArray memory area to set the bit in
93 * @param bitIdx which bit to unset
94 */
95void clearBit (char *bitArray, unsigned int bitIdx);
96
97/**
98 * Checks if a bit is active in the bitArray
99 *
100 * @param bitArray memory area to set the bit in
101 * @param bitIdx which bit to test
102 * @return GNUNET_YES if the bit is set, GNUNET_NO if not.
103 */
104int testBit (char *bitArray, unsigned int bitIdx);
105
81#endif /* end of include guard: GNUNET-DAEMON-VPN_H */ 106#endif /* end of include guard: GNUNET-DAEMON-VPN_H */