summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-05-04 16:53:00 +0200
committerChristian Grothoff <christian@grothoff.org>2019-05-04 16:53:00 +0200
commit3d2a951fa12546c09809f0a4d7e789ef8e971b03 (patch)
treeda31a75671d613d946be56c200814c8628f1885e /src/transport/gnunet-communicator-udp.c
parentba33155b4f60b8f8049c4f77e3b7b40e29ae63e2 (diff)
only use mono time in TNG HELLOs
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r--src/transport/gnunet-communicator-udp.c10
1 files changed, 1 insertions, 9 deletions
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;
}