#include <gnunet_common.h>
#include <gnunet_client_lib.h>
#include <gnunet_os_lib.h>
-#include <gnunet_mesh_service_new.h>
+#include <gnunet_mesh_service.h>
#include <gnunet_protocols.h>
#include <gnunet_server_lib.h>
#include <gnunet_container_lib.h>
send_query (void *cls __attribute__ ((unused)), size_t size, void *buf)
{
size_t len;
+
dns_transmit_handle = NULL;
/*
*/
if (head != NULL)
{
- dns_transmit_handle = GNUNET_CLIENT_notify_transmit_ready (dns_connection,
- ntohs (head->pkt.hdr.size),
- GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES, &send_query, NULL);
+ dns_transmit_handle =
+ GNUNET_CLIENT_notify_transmit_ready (dns_connection,
+ ntohs (head->pkt.hdr.size),
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_YES, &send_query, NULL);
}
else if (restart_hijack == 1)
{
- dns_transmit_handle = GNUNET_CLIENT_notify_transmit_ready (dns_connection,
- sizeof (struct GNUNET_MessageHeader),
- GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES, &send_query, NULL);
+ dns_transmit_handle =
+ GNUNET_CLIENT_notify_transmit_ready (dns_connection,
+ sizeof (struct
+ GNUNET_MessageHeader),
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_YES, &send_query, NULL);
}
return len;
/* If a packet is already in the list, schedule to send it */
if (dns_transmit_handle == NULL && head != NULL)
- dns_transmit_handle = GNUNET_CLIENT_notify_transmit_ready (dns_connection,
- ntohs (head->pkt.hdr.size),
- GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES, &send_query, NULL);
+ dns_transmit_handle =
+ GNUNET_CLIENT_notify_transmit_ready (dns_connection,
+ ntohs (head->pkt.hdr.size),
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_YES, &send_query, NULL);
else if (dns_transmit_handle == NULL && restart_hijack == 1)
{
- dns_transmit_handle = GNUNET_CLIENT_notify_transmit_ready (dns_connection,
- sizeof (struct GNUNET_MessageHeader),
- GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES, &send_query, NULL);
+ dns_transmit_handle =
+ GNUNET_CLIENT_notify_transmit_ready (dns_connection,
+ sizeof (struct
+ GNUNET_MessageHeader),
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_YES, &send_query, NULL);
}
}
if (msg == NULL)
{
if (dns_transmit_handle != NULL)
- GNUNET_CLIENT_notify_transmit_ready_cancel(dns_transmit_handle);
+ GNUNET_CLIENT_notify_transmit_ready_cancel (dns_transmit_handle);
dns_transmit_handle = NULL;
GNUNET_CLIENT_disconnect (dns_connection, GNUNET_NO);
dns_connection = NULL;