diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-03-06 01:36:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-03-06 01:36:32 +0000 |
commit | 94643c936f9276de0417857eee3a535bc790247a (patch) | |
tree | 492bbada5fdb2afd3d5cf7f34173b61bdef87d7a | |
parent | 74ebaf67f3e767379700c841708c7bd9618bb3e7 (diff) | |
download | gnunet-94643c936f9276de0417857eee3a535bc790247a.tar.gz gnunet-94643c936f9276de0417857eee3a535bc790247a.zip |
- add keepalive stats
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 1 | ||||
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 1df839d81..119cabee7 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -862,6 +862,7 @@ send_connection_keepalive (struct MeshConnection *c, int fwd) | |||
862 | LOG (GNUNET_ERROR_TYPE_INFO, | 862 | LOG (GNUNET_ERROR_TYPE_INFO, |
863 | "keepalive %s for connection %s\n", | 863 | "keepalive %s for connection %s\n", |
864 | GM_f2s (fwd), GMC_2s (c)); | 864 | GM_f2s (fwd), GMC_2s (c)); |
865 | GNUNET_STATISTICS_update (stats, "# keepalives sent", 1, GNUNET_NO); | ||
865 | 866 | ||
866 | GNUNET_assert (NULL != c->t); | 867 | GNUNET_assert (NULL != c->t); |
867 | msg.size = htons (sizeof (msg)); | 868 | msg.size = htons (sizeof (msg)); |
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 6888cc862..bce2812e5 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -1585,6 +1585,7 @@ handle_decrypted (struct MeshTunnel3 *t, | |||
1585 | { | 1585 | { |
1586 | case GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE: | 1586 | case GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE: |
1587 | /* Do nothing, connection aleady got updated. */ | 1587 | /* Do nothing, connection aleady got updated. */ |
1588 | GNUNET_STATISTICS_update (stats, "# keepalives received", 1, GNUNET_NO); | ||
1588 | break; | 1589 | break; |
1589 | 1590 | ||
1590 | case GNUNET_MESSAGE_TYPE_MESH_DATA: | 1591 | case GNUNET_MESSAGE_TYPE_MESH_DATA: |