format cleanup
This commit is contained in:
parent
dc76746bf2
commit
4d7f864495
|
@ -167,11 +167,11 @@ KS_DECLARE(ks_status_t) ks_dht_deinit(ks_dht_t *dht)
|
|||
dht->token_secret_previous = 0;
|
||||
dht->token_secret_expiration = 0;
|
||||
if (dht->rt_ipv4) {
|
||||
ks_dhtrt_deinitroute(dht->rt_ipv4);
|
||||
ks_dhtrt_deinitroute(&dht->rt_ipv4);
|
||||
dht->rt_ipv4 = NULL;
|
||||
}
|
||||
if (dht->rt_ipv6) {
|
||||
ks_dhtrt_deinitroute(dht->rt_ipv6);
|
||||
ks_dhtrt_deinitroute(&dht->rt_ipv6);
|
||||
dht->rt_ipv6 = NULL;
|
||||
}
|
||||
dht->transactionid_next = 0;
|
||||
|
@ -385,11 +385,11 @@ KS_DECLARE(ks_status_t) ks_dht_bind(ks_dht_t *dht, const ks_dht_nodeid_t *nodeid
|
|||
// @todo initialize or add local nodeid to appropriate route table
|
||||
if (ep->addr.family == AF_INET) {
|
||||
if (!dht->rt_ipv4) {
|
||||
//ks_dhtrt_initroute(&dht->rt_ipv4, dht->pool, &ep->nodeid);
|
||||
ks_dhtrt_initroute(&dht->rt_ipv4, dht->pool, ep->nodeid);
|
||||
}
|
||||
} else {
|
||||
if (!dht->rt_ipv6) {
|
||||
//ks_dhtrt_initroute(&dht->rt_ipv6, dht->pool, &ep->nodeid);
|
||||
ks_dhtrt_initroute(&dht->rt_ipv6, dht->pool, ep->nodeid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -230,8 +230,8 @@ KS_DECLARE(ks_status_t) ks_dht_transaction_deinit(ks_dht_transaction_t *transact
|
|||
* route table methods
|
||||
*
|
||||
*/
|
||||
KS_DECLARE(ks_dhtrt_routetable_t*) ks_dhtrt_initroute( ks_pool_t *pool, ks_dht_nodeid_t nodeid);
|
||||
KS_DECLARE(void) ks_dhtrt_deinitroute(ks_dhtrt_routetable_t* table );
|
||||
KS_DECLARE(ks_status_t) ks_dhtrt_initroute(ks_dhtrt_routetable_t **tableP, ks_pool_t *pool, ks_dht_nodeid_t nodeid);
|
||||
KS_DECLARE(void) ks_dhtrt_deinitroute(ks_dhtrt_routetable_t **table);
|
||||
|
||||
KS_DECLARE(ks_status_t) ks_dhtrt_create_node(ks_dhtrt_routetable_t* table,
|
||||
ks_dht_nodeid_t nodeid,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue