[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-developers] [PATCH/RFC RESEND] transport_tcp: make use of GNUNET
From: |
Daniel Golle |
Subject: |
[GNUnet-developers] [PATCH/RFC RESEND] transport_tcp: make use of GNUNET_HELLO_address_check_option |
Date: |
Thu, 4 Aug 2016 10:43:24 +0200 |
User-agent: |
Mutt/1.6.2 (2016-07-01) |
Use existing macro, probably this was forgotten earlier.
---
src/transport/plugin_transport_tcp.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index 02c0afa..79361d3 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -540,9 +540,8 @@ notify_session_monitor (struct Plugin *plugin,
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)
--
2.9.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-developers] [PATCH/RFC RESEND] transport_tcp: make use of GNUNET_HELLO_address_check_option,
Daniel Golle <=