diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-18 19:24:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-18 19:24:33 +0100 |
commit | dfde8ea01a08a32340a47df29ffc2571c031488b (patch) | |
tree | 81abde784965de4a4d3f32f882a39353cc96a88d /src/cadet/cadet_api.c | |
parent | 3edc21c27d208e45dc1af76131a480a3ebf1e8d3 (diff) | |
download | gnunet-dfde8ea01a08a32340a47df29ffc2571c031488b.tar.gz gnunet-dfde8ea01a08a32340a47df29ffc2571c031488b.zip |
create matching connection objects for inbound connections
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 4a662487c..8f1274d63 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -1209,7 +1209,7 @@ check_get_tunnel (void *cls, | |||
1209 | } | 1209 | } |
1210 | ch_n = ntohl (msg->channels); | 1210 | ch_n = ntohl (msg->channels); |
1211 | c_n = ntohl (msg->connections); | 1211 | c_n = ntohl (msg->connections); |
1212 | esize += ch_n * sizeof (struct GNUNET_CADET_ChannelNumber); | 1212 | esize += ch_n * sizeof (struct GNUNET_CADET_ChannelTunnelNumber); |
1213 | esize += c_n * sizeof (struct GNUNET_CADET_ConnectionTunnelIdentifier); | 1213 | esize += c_n * sizeof (struct GNUNET_CADET_ConnectionTunnelIdentifier); |
1214 | if (msize != esize) | 1214 | if (msize != esize) |
1215 | { | 1215 | { |
@@ -1248,14 +1248,14 @@ handle_get_tunnel (void *cls, | |||
1248 | unsigned int ch_n; | 1248 | unsigned int ch_n; |
1249 | unsigned int c_n; | 1249 | unsigned int c_n; |
1250 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *conns; | 1250 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *conns; |
1251 | const struct GNUNET_CADET_ChannelNumber *chns; | 1251 | const struct GNUNET_CADET_ChannelTunnelNumber *chns; |
1252 | 1252 | ||
1253 | ch_n = ntohl (msg->channels); | 1253 | ch_n = ntohl (msg->channels); |
1254 | c_n = ntohl (msg->connections); | 1254 | c_n = ntohl (msg->connections); |
1255 | 1255 | ||
1256 | /* Call Callback with tunnel info. */ | 1256 | /* Call Callback with tunnel info. */ |
1257 | conns = (const struct GNUNET_CADET_ConnectionTunnelIdentifier *) &msg[1]; | 1257 | conns = (const struct GNUNET_CADET_ConnectionTunnelIdentifier *) &msg[1]; |
1258 | chns = (const struct GNUNET_CADET_ChannelNumber *) &conns[c_n]; | 1258 | chns = (const struct GNUNET_CADET_ChannelTunnelNumber *) &conns[c_n]; |
1259 | h->info_cb.tunnel_cb (h->info_cls, | 1259 | h->info_cb.tunnel_cb (h->info_cls, |
1260 | &msg->destination, | 1260 | &msg->destination, |
1261 | ch_n, | 1261 | ch_n, |