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.h40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.h b/src/vpn/gnunet-daemon-vpn.h
index 7643a6e4d..ac6e50c72 100644
--- a/src/vpn/gnunet-daemon-vpn.h
+++ b/src/vpn/gnunet-daemon-vpn.h
@@ -35,24 +35,25 @@
35 * At the moment this means "inventing" and IPv6-Address for .gnunet-services and 35 * At the moment this means "inventing" and IPv6-Address for .gnunet-services and
36 * doing nothing for "real" services. 36 * doing nothing for "real" services.
37 */ 37 */
38void 38void process_answer (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
39process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc);
40 39
41void send_icmp6_response(void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc); 40void send_icmp6_response (void *cls,
42void send_icmp4_response(void* cls, const struct GNUNET_SCHEDULER_TaskContext *tc); 41 const struct GNUNET_SCHEDULER_TaskContext *tc);
42void send_icmp4_response (void *cls,
43 const struct GNUNET_SCHEDULER_TaskContext *tc);
43 44
44size_t 45size_t
45send_udp_service (void *cls, size_t size, void *buf); 46 send_udp_service (void *cls, size_t size, void *buf);
46 47
47GNUNET_HashCode* address6_mapping_exists(unsigned char addr[]); 48GNUNET_HashCode *address6_mapping_exists (unsigned char addr[]);
48GNUNET_HashCode* address4_mapping_exists(uint32_t addr); 49GNUNET_HashCode *address4_mapping_exists (uint32_t addr);
49 50
50unsigned int port_in_ports (uint64_t ports, uint16_t port); 51unsigned int port_in_ports (uint64_t ports, uint16_t port);
51 52
52void 53void
53send_pkt_to_peer (void *cls, 54send_pkt_to_peer (void *cls,
54 const struct GNUNET_PeerIdentity *peer, 55 const struct GNUNET_PeerIdentity *peer,
55 const struct GNUNET_TRANSPORT_ATS_Information *atsi); 56 const struct GNUNET_TRANSPORT_ATS_Information *atsi);
56 57
57/** 58/**
58 * The configuration to use 59 * The configuration to use
@@ -67,22 +68,23 @@ extern struct GNUNET_MESH_Handle *mesh_handle;
67/** 68/**
68 * The hashmap containing the mappings from ipv6-addresses to gnunet-descriptors 69 * The hashmap containing the mappings from ipv6-addresses to gnunet-descriptors
69 */ 70 */
70extern struct GNUNET_CONTAINER_MultiHashMap* hashmap; 71extern struct GNUNET_CONTAINER_MultiHashMap *hashmap;
71 72
72struct map_entry { 73struct map_entry
74{
73 /** The description of the service (used for service) */ 75 /** The description of the service (used for service) */
74 struct GNUNET_vpn_service_descriptor desc; 76 struct GNUNET_vpn_service_descriptor desc;
75 77
76 /** The real address of the service (used for remote) */ 78 /** The real address of the service (used for remote) */
77 char addrlen; 79 char addrlen;
78 char addr[16]; 80 char addr[16];
79 81
80 struct GNUNET_MESH_Tunnel *tunnel; 82 struct GNUNET_MESH_Tunnel *tunnel;
81 uint16_t namelen; 83 uint16_t namelen;
82 char additional_ports[8192]; 84 char additional_ports[8192];
83 85
84 struct GNUNET_CONTAINER_HeapNode* heap_node; 86 struct GNUNET_CONTAINER_HeapNode *heap_node;
85 GNUNET_HashCode hash; 87 GNUNET_HashCode hash;
86 /** 88 /**
87 * After this struct the name is located in DNS-Format! 89 * After this struct the name is located in DNS-Format!
88 */ 90 */