aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_monitor_plugins.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-23 19:24:08 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-23 19:24:08 +0000
commite5d9d0d24bc32dcebcd5d2f86ca5cca579bc5dbb (patch)
tree892b7997407e9705e7a4072ffe8397f03c40adb5 /src/transport/transport_api_monitor_plugins.c
parentb3db692279aec4f8e016ee3ebd83a18ce182bd35 (diff)
downloadgnunet-e5d9d0d24bc32dcebcd5d2f86ca5cca579bc5dbb.tar.gz
gnunet-e5d9d0d24bc32dcebcd5d2f86ca5cca579bc5dbb.zip
-fix sync signalling for plugin monitoring
Diffstat (limited to 'src/transport/transport_api_monitor_plugins.c')
-rw-r--r--src/transport/transport_api_monitor_plugins.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/transport_api_monitor_plugins.c b/src/transport/transport_api_monitor_plugins.c
index 818530c84..1bbb4c102 100644
--- a/src/transport/transport_api_monitor_plugins.c
+++ b/src/transport/transport_api_monitor_plugins.c
@@ -296,6 +296,17 @@ response_processor (void *cls,
296 reconnect_plugin_ctx (pm); 296 reconnect_plugin_ctx (pm);
297 return; 297 return;
298 } 298 }
299 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_SYNC == ntohs (msg->type)) &&
300 (sizeof (struct GNUNET_MessageHeader) == ntohs (msg->size)) )
301 {
302 /* we are in sync */
303 pm->cb (pm->cb_cls,
304 NULL,
305 NULL,
306 NULL);
307 return;
308 }
309
299 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT != ntohs (msg->type)) || 310 if ( (GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT != ntohs (msg->type)) ||
300 (sizeof (struct TransportPluginMonitorMessage) > ntohs (msg->size)) ) 311 (sizeof (struct TransportPluginMonitorMessage) > ntohs (msg->size)) )
301 { 312 {