diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2017-04-28 15:42:17 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2017-04-28 15:42:17 +0200 |
commit | d1e6e4486c14e56da665c5690844ef5f2e893f0a (patch) | |
tree | f3e38a7a6b13ffe8d63a6079d7dfc7e3b7512d6b /ot_fullscrape.c | |
parent | d4598cc93017e4d7e71a6f854d389dcf6749e8df (diff) |
incorporate a more verbose ascii dump, provided by Tom <tom@foscore.com>
Diffstat (limited to 'ot_fullscrape.c')
-rw-r--r-- | ot_fullscrape.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index 89db2f1..faea4b9 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
@@ -175,6 +175,10 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas | |||
175 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); | 175 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); |
176 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); | 176 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); |
177 | break; | 177 | break; |
178 | case TASK_FULLSCRAPE_TPB_ASCII_PLUS: | ||
179 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); | ||
180 | r += sprintf( r, ":%zd:%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count, peer_list->down_count ); | ||
181 | break; | ||
178 | case TASK_FULLSCRAPE_TPB_BINARY: | 182 | case TASK_FULLSCRAPE_TPB_BINARY: |
179 | memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); | 183 | memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); |
180 | *(uint32_t*)(r+0) = htonl( (uint32_t) peer_list->seed_count ); | 184 | *(uint32_t*)(r+0) = htonl( (uint32_t) peer_list->seed_count ); |