gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14391 - gnunet/src/vpn


From: gnunet
Subject: [GNUnet-SVN] r14391 - gnunet/src/vpn
Date: Fri, 11 Feb 2011 10:30:28 +0100

Author: holindho
Date: 2011-02-11 10:30:28 +0100 (Fri, 11 Feb 2011)
New Revision: 14391

Modified:
   gnunet/src/vpn/gnunet-daemon-vpn-dns.c
   gnunet/src/vpn/gnunet-daemon-vpn-dns.h
   gnunet/src/vpn/gnunet-daemon-vpn-helper.c
   gnunet/src/vpn/gnunet-daemon-vpn-helper.h
   gnunet/src/vpn/gnunet-daemon-vpn.c
   gnunet/src/vpn/gnunet-daemon-vpn.h
Log:
defining stuff in headers confuses the linker


Modified: gnunet/src/vpn/gnunet-daemon-vpn-dns.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn-dns.c      2011-02-11 09:16:23 UTC (rev 
14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn-dns.c      2011-02-11 09:30:28 UTC (rev 
14391)
@@ -39,6 +39,13 @@
 #include "gnunet-service-dns-p.h"
 #include "gnunet-vpn-packet.h"
 
+struct query_packet_list *head;
+struct query_packet_list *tail;
+struct GNUNET_CLIENT_Connection *dns_connection;
+unsigned char restart_hijack;
+struct answer_packet_list *answer_proc_head;
+struct answer_packet_list *answer_proc_tail;
+
 /**
  * Callback called by notify_transmit_ready; sends dns-queries or 
rehijack-messages
  * to the service-dns

Modified: gnunet/src/vpn/gnunet-daemon-vpn-dns.h
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn-dns.h      2011-02-11 09:16:23 UTC (rev 
14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn-dns.h      2011-02-11 09:30:28 UTC (rev 
14391)
@@ -29,12 +29,12 @@
 /**
  * a list of outgoing dns-query-packets
  */
-struct query_packet_list *head;
+extern struct query_packet_list *head;
 
 /**
  * The last element of the list of outgoing dns-query-packets
  */
-struct query_packet_list *tail;
+extern struct query_packet_list *tail;
 
 /**
  * Callback called by notify_transmit_ready; sends dns-queries or 
rehijack-messages
@@ -57,7 +57,7 @@
 /**
  * The connection to the service-dns
  */
-struct GNUNET_CLIENT_Connection *dns_connection;
+extern struct GNUNET_CLIENT_Connection *dns_connection;
 
 /**
  * A flag to show that the service-dns has to rehijack the outbound dns-packets
@@ -65,7 +65,7 @@
  * This gets set when the helper restarts as the routing-tables are flushed 
when
  * the interface vanishes.
  */
-unsigned char restart_hijack;
+extern unsigned char restart_hijack;
 
 /**
  * A list of processed dns-responses.
@@ -73,11 +73,11 @@
  * "processed" means that the packet is complete and can be sent out via udp
  * directly
  */
-struct answer_packet_list *answer_proc_head;
+extern struct answer_packet_list *answer_proc_head;
 
 /**
  * The last element of the list of processed dns-responses.
  */
-struct answer_packet_list *answer_proc_tail;
+extern struct answer_packet_list *answer_proc_tail;
 
 #endif /* end of include guard: GNUNET-DAEMON-VPN-DNS_H */

Modified: gnunet/src/vpn/gnunet-daemon-vpn-helper.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn-helper.c   2011-02-11 09:16:23 UTC (rev 
14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn-helper.c   2011-02-11 09:30:28 UTC (rev 
14391)
@@ -40,6 +40,8 @@
 #include "gnunet-service-dns-p.h"
 #include "gnunet-vpn-packet.h"
 
+struct GNUNET_VPN_HELPER_Handle *helper_handle;
+
 /**
  * Start the helper-process
  *

Modified: gnunet/src/vpn/gnunet-daemon-vpn-helper.h
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn-helper.h   2011-02-11 09:16:23 UTC (rev 
14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn-helper.h   2011-02-11 09:30:28 UTC (rev 
14391)
@@ -31,7 +31,7 @@
 /**
  * Handle to the helper. contains filedescriptors and such
  */
-struct GNUNET_VPN_HELPER_Handle *helper_handle;
+extern struct GNUNET_VPN_HELPER_Handle *helper_handle;
 
 /**
  * Start the helper-process

Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c  2011-02-11 09:16:23 UTC (rev 14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c  2011-02-11 09:30:28 UTC (rev 14391)
@@ -40,6 +40,10 @@
 
 #include "gnunet-daemon-vpn.h"
 
+const struct GNUNET_CONFIGURATION_Handle *cfg;
+struct GNUNET_MESH_Handle *mesh_handle;
+struct GNUNET_CONTAINER_MultiHashMap* hashmap;
+
 /**
  * Final status code.
  */

Modified: gnunet/src/vpn/gnunet-daemon-vpn.h
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.h  2011-02-11 09:16:23 UTC (rev 14390)
+++ gnunet/src/vpn/gnunet-daemon-vpn.h  2011-02-11 09:30:28 UTC (rev 14391)
@@ -62,17 +62,17 @@
 /**
  * The configuration to use
  */
-const struct GNUNET_CONFIGURATION_Handle *cfg;
+extern const struct GNUNET_CONFIGURATION_Handle *cfg;
 
 /**
  * The handle to mesh
  */
-struct GNUNET_MESH_Handle *mesh_handle;
+extern struct GNUNET_MESH_Handle *mesh_handle;
 
 /**
  * The hashmap containing the mappings from ipv6-addresses to 
gnunet-descriptors
  */
-struct GNUNET_CONTAINER_MultiHashMap* hashmap;
+extern struct GNUNET_CONTAINER_MultiHashMap* hashmap;
 
 struct map_entry {
     struct GNUNET_vpn_service_descriptor desc;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]