Revision b8047447
src/Cache/ncast_proto.c | ||
---|---|---|
37 | 37 |
|
38 | 38 |
int ncast_reply(struct ncast_proto_context *context, const struct peer_cache *c, const struct peer_cache *local_cache) |
39 | 39 |
{ |
40 |
return topo_reply(context->context, c, local_cache, MSG_TYPE_TOPOLOGY, NCAST_REPLY, 0, 1); |
|
40 |
int ret; |
|
41 |
struct peer_cache *send_cache; |
|
42 |
|
|
43 |
send_cache = cache_copy(local_cache); |
|
44 |
cache_update(send_cache); |
|
45 |
ret = topo_reply(context->context, c, send_cache, MSG_TYPE_TOPOLOGY, NCAST_REPLY, 0, 1); |
|
46 |
cache_free(send_cache); |
|
47 |
|
|
48 |
return ret; |
|
41 | 49 |
} |
42 | 50 |
|
43 | 51 |
int ncast_query_peer(struct ncast_proto_context *context, const struct peer_cache *local_cache, struct nodeID *dst) |
Also available in: Unified diff