aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-udp.c
diff options
context:
space:
mode:
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)
1630 &ub->sender.public_key)) 1630 &ub->sender.public_key))
1631 { 1631 {
1632 char *addr_s; 1632 char *addr_s;
1633 struct GNUNET_TIME_Absolute expiration;
1634 enum GNUNET_NetworkType nt; 1633 enum GNUNET_NetworkType nt;
1635 1634
1636 addr_s = 1635 addr_s =
1637 sockaddr_to_udpaddr_string ((const struct sockaddr *) &sa, salen); 1636 sockaddr_to_udpaddr_string ((const struct sockaddr *) &sa, salen);
1638 GNUNET_STATISTICS_update (stats, "# broadcasts received", 1, GNUNET_NO); 1637 GNUNET_STATISTICS_update (stats, "# broadcasts received", 1, GNUNET_NO);
1639 /* expire at the broadcast frequency, as then we'll get the next one
1640 * anyway */
1641 expiration = GNUNET_TIME_relative_to_absolute (BROADCAST_FREQUENCY);
1642 /* use our own mechanism to determine network type */ 1638 /* use our own mechanism to determine network type */
1643 nt = 1639 nt =
1644 GNUNET_NT_scanner_get_type (is, (const struct sockaddr *) &sa, salen); 1640 GNUNET_NT_scanner_get_type (is, (const struct sockaddr *) &sa, salen);
1645 GNUNET_TRANSPORT_application_validate (ah, 1641 GNUNET_TRANSPORT_application_validate (ah, &ub->sender, nt, addr_s);
1646 &ub->sender,
1647 expiration,
1648 nt,
1649 addr_s);
1650 GNUNET_free (addr_s); 1642 GNUNET_free (addr_s);
1651 return; 1643 return;
1652 } 1644 }