diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-25 13:12:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-25 13:12:47 +0000 |
commit | 24dfcbf8adcfe9b2d7b03cb5510763780325e587 (patch) | |
tree | 6bc742e9f210eb2b0655ce3e44a933d028918655 /src/exit | |
parent | 045655fe5049ea6087685b79391465873822277f (diff) | |
download | gnunet-24dfcbf8adcfe9b2d7b03cb5510763780325e587.tar.gz gnunet-24dfcbf8adcfe9b2d7b03cb5510763780325e587.zip |
-logging, doxygen
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index da0368655..82242c78c 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -1930,11 +1930,10 @@ receive_tcp_service (void *cls, | |||
1930 | * | 1930 | * |
1931 | * @param cls closure, NULL | 1931 | * @param cls closure, NULL |
1932 | * @param channel connection to the other end | 1932 | * @param channel connection to the other end |
1933 | * @param channel_ctx pointer to our 'struct ChannelState *' | 1933 | * @param channel_ctx pointer to our `struct ChannelState *` |
1934 | * @param message the actual message | 1934 | * @param message the actual message |
1935 | * | 1935 | * @return #GNUNET_OK to keep the connection open, |
1936 | * @return GNUNET_OK to keep the connection open, | 1936 | * #GNUNET_SYSERR to close it (signal serious error) |
1937 | * GNUNET_SYSERR to close it (signal serious error) | ||
1938 | */ | 1937 | */ |
1939 | static int | 1938 | static int |
1940 | receive_tcp_remote (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel *channel, | 1939 | receive_tcp_remote (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel *channel, |
@@ -2061,7 +2060,8 @@ receive_tcp_remote (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel *channe | |||
2061 | * #GNUNET_SYSERR to close it (signal serious error) | 2060 | * #GNUNET_SYSERR to close it (signal serious error) |
2062 | */ | 2061 | */ |
2063 | static int | 2062 | static int |
2064 | receive_tcp_data (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel *channel, | 2063 | receive_tcp_data (void *cls GNUNET_UNUSED, |
2064 | struct GNUNET_CADET_Channel *channel, | ||
2065 | void **channel_ctx GNUNET_UNUSED, | 2065 | void **channel_ctx GNUNET_UNUSED, |
2066 | const struct GNUNET_MessageHeader *message) | 2066 | const struct GNUNET_MessageHeader *message) |
2067 | { | 2067 | { |
@@ -2089,6 +2089,7 @@ receive_tcp_data (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel *channel, | |||
2089 | GNUNET_STATISTICS_update (stats, | 2089 | GNUNET_STATISTICS_update (stats, |
2090 | gettext_noop ("# TCP DATA requests dropped (no session)"), | 2090 | gettext_noop ("# TCP DATA requests dropped (no session)"), |
2091 | 1, GNUNET_NO); | 2091 | 1, GNUNET_NO); |
2092 | GNUNET_break_op (0); | ||
2092 | return GNUNET_SYSERR; | 2093 | return GNUNET_SYSERR; |
2093 | } | 2094 | } |
2094 | if (data->tcp_header.off * 4 < sizeof (struct GNUNET_TUN_TcpHeader)) | 2095 | if (data->tcp_header.off * 4 < sizeof (struct GNUNET_TUN_TcpHeader)) |
@@ -3008,7 +3009,7 @@ receive_udp_service (void *cls, | |||
3008 | 3009 | ||
3009 | 3010 | ||
3010 | /** | 3011 | /** |
3011 | * Callback from GNUNET_CADET for new channels. | 3012 | * Callback from CADET for new channels. |
3012 | * | 3013 | * |
3013 | * @param cls closure | 3014 | * @param cls closure |
3014 | * @param channel new handle to the channel | 3015 | * @param channel new handle to the channel |
@@ -3019,9 +3020,10 @@ receive_udp_service (void *cls, | |||
3019 | */ | 3020 | */ |
3020 | static void * | 3021 | static void * |
3021 | new_channel (void *cls, | 3022 | new_channel (void *cls, |
3022 | struct GNUNET_CADET_Channel *channel, | 3023 | struct GNUNET_CADET_Channel *channel, |
3023 | const struct GNUNET_PeerIdentity *initiator, | 3024 | const struct GNUNET_PeerIdentity *initiator, |
3024 | uint32_t port, enum GNUNET_CADET_ChannelOption options) | 3025 | uint32_t port, |
3026 | enum GNUNET_CADET_ChannelOption options) | ||
3025 | { | 3027 | { |
3026 | struct ChannelState *s = GNUNET_new (struct ChannelState); | 3028 | struct ChannelState *s = GNUNET_new (struct ChannelState); |
3027 | 3029 | ||