From 3d2a951fa12546c09809f0a4d7e789ef8e971b03 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 4 May 2019 16:53:00 +0200 Subject: only use mono time in TNG HELLOs --- src/transport/gnunet-communicator-udp.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/transport/gnunet-communicator-udp.c') diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index 9420b9b5c..1c2063d58 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c @@ -1630,23 +1630,15 @@ sock_read (void *cls) &ub->sender.public_key)) { char *addr_s; - struct GNUNET_TIME_Absolute expiration; enum GNUNET_NetworkType nt; addr_s = sockaddr_to_udpaddr_string ((const struct sockaddr *) &sa, salen); GNUNET_STATISTICS_update (stats, "# broadcasts received", 1, GNUNET_NO); - /* expire at the broadcast frequency, as then we'll get the next one - * anyway */ - expiration = GNUNET_TIME_relative_to_absolute (BROADCAST_FREQUENCY); /* use our own mechanism to determine network type */ nt = GNUNET_NT_scanner_get_type (is, (const struct sockaddr *) &sa, salen); - GNUNET_TRANSPORT_application_validate (ah, - &ub->sender, - expiration, - nt, - addr_s); + GNUNET_TRANSPORT_application_validate (ah, &ub->sender, nt, addr_s); GNUNET_free (addr_s); return; } -- cgit v1.2.3