X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.c;h=b9897e899954b9f1e231a084f08f242680ae93ef;hb=789146757ca0bc630492bf31ae48ede42b7b437a;hp=8f4b6eeeb018b3c1c718b9c3fc66dd22d00f4cc9;hpb=a03991b7911a5f0afbf1269ac47143d09be76c52;p=tinc diff --git a/src/node.c b/src/node.c index 8f4b6eee..b9897e89 100644 --- a/src/node.c +++ b/src/node.c @@ -22,7 +22,6 @@ #include "address_cache.h" #include "control_common.h" -#include "hash.h" #include "logger.h" #include "net.h" #include "netutl.h" @@ -204,12 +203,12 @@ bool dump_nodes(connection_t *c) { } id[sizeof(id) - 1] = 0; - send_request(c, "%d %d %s %s %s %d %d %d %d %x %x %s %s %d %d %d %d %ld %d %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64, CONTROL, REQ_DUMP_NODES, + send_request(c, "%d %d %s %s %s %d %d %zu %d %x %x %s %s %d %d %d %d %ld %d %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64, CONTROL, REQ_DUMP_NODES, n->name, id, n->hostname ? n->hostname : "unknown port unknown", #ifdef DISABLE_LEGACY - 0, 0, 0, + 0, 0, 0UL, #else - cipher_get_nid(n->outcipher), digest_get_nid(n->outdigest), (int)digest_length(n->outdigest), + cipher_get_nid(n->outcipher), digest_get_nid(n->outdigest), digest_length(n->outdigest), #endif n->outcompression, n->options, bitfield_to_int(&n->status, sizeof(n->status)), n->nexthop ? n->nexthop->name : "-", n->via && n->via->name ? n->via->name : "-", n->distance,