diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-22 14:26:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-22 14:26:50 +0000 |
commit | d80bcf63863d4f2203d76edb8934cbd808ed9e77 (patch) | |
tree | c2facdd3272328e96aa8070f690b31914acfacb3 /src/vpn | |
parent | ba82ebfcbd8de0ea2fac221247bf3fdbc543bfeb (diff) | |
download | gnunet-d80bcf63863d4f2203d76edb8934cbd808ed9e77.tar.gz gnunet-d80bcf63863d4f2203d76edb8934cbd808ed9e77.zip |
-doxygen, following naming conventions
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index f713fa18e..030816797 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -828,10 +828,10 @@ create_tunnel_to_destination (struct DestinationEntry *de, | |||
828 | { | 828 | { |
829 | ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle, | 829 | ts->tunnel = GNUNET_MESH_tunnel_create (mesh_handle, |
830 | ts, | 830 | ts, |
831 | &de->details.service_destination.target, | 831 | &de->details.service_destination.target, |
832 | PORT_VPN, | 832 | PORT_VPN, |
833 | GNUNET_YES, | 833 | GNUNET_YES, |
834 | GNUNET_NO); | 834 | GNUNET_NO); |
835 | if (NULL == ts->tunnel) | 835 | if (NULL == ts->tunnel) |
836 | { | 836 | { |
837 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 837 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
@@ -2822,11 +2822,9 @@ service_redirect_to_service (void *cls GNUNET_UNUSED, struct GNUNET_SERVER_Clien | |||
2822 | 2822 | ||
2823 | 2823 | ||
2824 | /** | 2824 | /** |
2825 | * Function called whenever an inbound tunnel is destroyed. Should clean up | 2825 | * Function called whenever a tunnel is destroyed. Should clean up |
2826 | * any associated state. | 2826 | * any associated state. |
2827 | * | 2827 | * |
2828 | * FIXME now its also user for disconnections | ||
2829 | * | ||
2830 | * @param cls closure (set from #GNUNET_MESH_connect) | 2828 | * @param cls closure (set from #GNUNET_MESH_connect) |
2831 | * @param tunnel connection to the other end (henceforth invalid) | 2829 | * @param tunnel connection to the other end (henceforth invalid) |
2832 | * @param tunnel_ctx place where local state associated | 2830 | * @param tunnel_ctx place where local state associated |
@@ -2837,8 +2835,10 @@ tunnel_cleaner (void *cls, | |||
2837 | const struct GNUNET_MESH_Tunnel *tunnel, | 2835 | const struct GNUNET_MESH_Tunnel *tunnel, |
2838 | void *tunnel_ctx) | 2836 | void *tunnel_ctx) |
2839 | { | 2837 | { |
2840 | /* we don't have inbound tunnels, so this function should never be called */ | 2838 | struct TunnelState *ts = tunnel_ctx; |
2841 | GNUNET_break (0); | 2839 | |
2840 | ts->tunnel = NULL; /* we must not call GNUNET_MESH_tunnel_destroy() anymore */ | ||
2841 | free_tunnel_state (ts); | ||
2842 | } | 2842 | } |
2843 | 2843 | ||
2844 | 2844 | ||