gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37660 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r37660 - gnunet/src/transport
Date: Thu, 4 Aug 2016 13:35:25 +0200

Author: daniel
Date: 2016-08-04 13:35:25 +0200 (Thu, 04 Aug 2016)
New Revision: 37660

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
Log:
transport_tcp: make use of GNUNET_HELLO_address_check_option

probably this was forgotten earlier

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2016-08-04 09:00:49 UTC (rev 
37659)
+++ gnunet/src/transport/plugin_transport_tcp.c 2016-08-04 11:35:25 UTC (rev 
37660)
@@ -540,9 +540,8 @@
     return;
   memset (&info, 0, sizeof (info));
   info.state = state;
-  info.is_inbound = (0 != (GNUNET_HELLO_ADDRESS_INFO_INBOUND & 
session->address->local_info))
-    ? GNUNET_YES
-    : GNUNET_NO;
+  info.is_inbound = GNUNET_HELLO_address_check_option (session->address,
+                                         GNUNET_HELLO_ADDRESS_INFO_INBOUND);
   info.num_msg_pending = session->msgs_in_queue;
   info.num_bytes_pending = session->bytes_in_queue;
   if (NULL != session->receive_delay_task)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]