aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api_get_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/cadet_api_get_path.c')
-rw-r--r--src/cadet/cadet_api_get_path.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cadet/cadet_api_get_path.c b/src/cadet/cadet_api_get_path.c
index 2f35e365e..fcc79c3d5 100644
--- a/src/cadet/cadet_api_get_path.c
+++ b/src/cadet/cadet_api_get_path.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -66,7 +66,7 @@ struct GNUNET_CADET_GetPath
66 * Backoff for reconnect attempts. 66 * Backoff for reconnect attempts.
67 */ 67 */
68 struct GNUNET_TIME_Relative backoff; 68 struct GNUNET_TIME_Relative backoff;
69 69
70 /** 70 /**
71 * Peer we want information about. 71 * Peer we want information about.
72 */ 72 */
@@ -109,7 +109,7 @@ check_get_path (void *cls,
109/** 109/**
110 * Process a local peer info reply, pass info to the user. 110 * Process a local peer info reply, pass info to the user.
111 * 111 *
112 * @param cls Closure 112 * @param cls Closure
113 * @param message Message itself. 113 * @param message Message itself.
114 */ 114 */
115static void 115static void
@@ -118,9 +118,10 @@ handle_get_path (void *cls,
118{ 118{
119 struct GNUNET_CADET_GetPath *gp = cls; 119 struct GNUNET_CADET_GetPath *gp = cls;
120 struct GNUNET_CADET_PeerPathDetail ppd; 120 struct GNUNET_CADET_PeerPathDetail ppd;
121 121
122 ppd.peer = gp->id; 122 ppd.peer = gp->id;
123 ppd.path = (const struct GNUNET_PeerIdentity *) &message[1]; 123 ppd.path = (const struct GNUNET_PeerIdentity *) &message[1];
124 ppd.target_offset = ntohl (message->off);
124 ppd.path_length = (ntohs (message->header.size) - sizeof (*message)) 125 ppd.path_length = (ntohs (message->header.size) - sizeof (*message))
125 / sizeof (struct GNUNET_PeerIdentity); 126 / sizeof (struct GNUNET_PeerIdentity);
126 gp->path_cb (gp->path_cb_cls, 127 gp->path_cb (gp->path_cb_cls,
@@ -131,7 +132,7 @@ handle_get_path (void *cls,
131/** 132/**
132 * Process a local peer info reply, pass info to the user. 133 * Process a local peer info reply, pass info to the user.
133 * 134 *
134 * @param cls Closure 135 * @param cls Closure
135 * @param message Message itself. 136 * @param message Message itself.
136 */ 137 */
137static void 138static void
@@ -177,7 +178,7 @@ error_handler (void *cls,
177 gp); 178 gp);
178} 179}
179 180
180 181
181/** 182/**
182 * Reconnect to the service and try again. 183 * Reconnect to the service and try again.
183 * 184 *