projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be2801
)
transport_tcp: make use of GNUNET_HELLO_address_check_option
author
Daniel Golle
<daniel@makrotopia.org>
Thu, 4 Aug 2016 11:35:25 +0000
(11:35 +0000)
committer
Daniel Golle
<daniel@makrotopia.org>
Thu, 4 Aug 2016 11:35:25 +0000
(11:35 +0000)
probably this was forgotten earlier
src/transport/plugin_transport_tcp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index 02c0afaad3e5781d3d8cb61607466cddd98495b4..79361d3f270da38a1bb814b42a9ed4fa968adb07 100644
(file)
--- 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)