From: Philipp Tölke Date: Wed, 15 Dec 2010 08:26:30 +0000 (+0000) Subject: Tell core that we want to have this packet delivered X-Git-Tag: initial-import-from-subversion-38251~19522 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=98db0bc6ec222b2ed0cc92c23671cea7cbfe6a0f;p=oweals%2Fgnunet.git Tell core that we want to have this packet delivered --- diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 3b61c0257..31d1e6700 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -38,6 +38,7 @@ #include "gnunet_client_lib.h" #include "gnunet_container_lib.h" #include "block_dns.h" +#include "gnunet_constants.h" /** * Final status code. @@ -495,7 +496,7 @@ send_udp (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) struct udp_pkt *udp = (struct udp_pkt *) (hc + 1); GNUNET_CORE_notify_transmit_ready (core_handle, 42, - GNUNET_TIME_UNIT_FOREVER_REL, + GNUNET_TIME_relative_divide(GNUNET_CONSTANTS_MAX_CORK_DELAY, 2), peer, htons (sizeof (struct GNUNET_MessageHeader) + @@ -878,7 +879,7 @@ receive_from_network (void *cls, memcpy (pkt + 1, buf, len); GNUNET_CORE_notify_transmit_ready (core_handle, 42, - GNUNET_TIME_UNIT_FOREVER_REL, + GNUNET_TIME_relative_divide(GNUNET_CONSTANTS_MAX_CORK_DELAY, 2), &data->state.peer, len_pkt, send_udp_service, hdr);