diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_tunnels.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_tunnels.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c index fd8335486..03067a605 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.c +++ b/src/cadet/gnunet-service-cadet-new_tunnels.c | |||
@@ -24,6 +24,8 @@ | |||
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * | 25 | * |
26 | * FIXME: | 26 | * FIXME: |
27 | * - implement keepalive | ||
28 | * - implement rekeying | ||
27 | * - check KX estate machine -- make sure it is never stuck! | 29 | * - check KX estate machine -- make sure it is never stuck! |
28 | * - clean up KX logic, including adding sender authentication | 30 | * - clean up KX logic, including adding sender authentication |
29 | * - implement connection management (evaluate, kill old ones, | 31 | * - implement connection management (evaluate, kill old ones, |
@@ -1961,7 +1963,7 @@ GCT_consider_path (struct CadetTunnel *t, | |||
1961 | 1963 | ||
1962 | 1964 | ||
1963 | /** | 1965 | /** |
1964 | * NOT IMPLEMENTED. | 1966 | * We got a keepalive. Track in statistics. |
1965 | * | 1967 | * |
1966 | * @param cls the `struct CadetTunnel` for which we decrypted the message | 1968 | * @param cls the `struct CadetTunnel` for which we decrypted the message |
1967 | * @param msg the message we received on the tunnel | 1969 | * @param msg the message we received on the tunnel |
@@ -1972,7 +1974,13 @@ handle_plaintext_keepalive (void *cls, | |||
1972 | { | 1974 | { |
1973 | struct CadetTunnel *t = cls; | 1975 | struct CadetTunnel *t = cls; |
1974 | 1976 | ||
1975 | GNUNET_break (0); // FIXME | 1977 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1978 | "Received KEEPALIVE on tunnel %s\n", | ||
1979 | GCT_2s (t)); | ||
1980 | GNUNET_STATISTICS_update (stats, | ||
1981 | "# keepalives received", | ||
1982 | 1, | ||
1983 | GNUNET_NO); | ||
1976 | } | 1984 | } |
1977 | 1985 | ||
1978 | 1986 | ||