#include "gnunet_common.h"#include "gnunet_constants.h"#include "gnunet_dht_block_types.h"#include "gnunet_dht_service.h"#include "gnunet_pils_service.h"#include "gnunet_time_lib.h"#include "gnunet_util_lib.h"#include "dht_helper.h"#include <inttypes.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | TVG_CallbackData |
Macros | |
| #define | NUM_PEERS 5 |
Functions | |
| static void | print_put_message (struct TVG_CallbackData *tvg) |
| static bool | cb_print_put_message (void *cls, size_t msize, struct PeerPutMessage *ppm) |
| static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
| Main function that will be run. | |
| int | main (int argc, char *const *argv) |
| The main function of the test vector generation tool. | |
Variables | |
| struct GNUNET_PILS_Handle * | GDS_pils |
| Handle for the pils service. | |
| static const char * | peers_str [5] |
| #define NUM_PEERS 5 |
Definition at line 42 of file gnunet-dht-tvg.c.
|
static |
Definition at line 112 of file gnunet-dht-tvg.c.
References TVG_CallbackData::block_data, TVG_CallbackData::block_len, cb_print_put_message(), GDS_helper_make_put_message(), GDS_helper_put_message_get_size(), GNUNET_assert, GNUNET_BLOCK_TYPE_TEST, GNUNET_CONTAINER_bloomfilter_add(), GNUNET_OK, GNUNET_TIME_UNIT_FOREVER_ABS, TVG_CallbackData::index, TVG_CallbackData::key, NUM_PEERS, TVG_CallbackData::peer_bf, peers, TVG_CallbackData::peers, TVG_CallbackData::peers_hash, TVG_CallbackData::peers_sk, TVG_CallbackData::pp, TVG_CallbackData::put_path_len, ret, and TVG_CallbackData::ro.
Referenced by cb_print_put_message(), and run().
|
static |
Definition at line 73 of file gnunet-dht-tvg.c.
References GNUNET_print_bytes(), TVG_CallbackData::index, peers, TVG_CallbackData::peers, TVG_CallbackData::pp, GNUNET_DHT_PathElement::pred, print_put_message(), TVG_CallbackData::put_path_len, PeerPutMessage::put_path_length, and GNUNET_DHT_PathElement::sig.
Referenced by print_put_message().
|
static |
Main function that will be run.
| cls | closure |
| args | remaining command-line arguments |
| cfgfile | name of the configuration file used (for saving, can be NULL!) |
| cfg | configuration |
Definition at line 173 of file gnunet-dht-tvg.c.
References TVG_CallbackData::block_data, TVG_CallbackData::block_len, DHT_BLOOM_SIZE, GDS_helper_cleanup_operations(), GDS_pils, GNUNET_CONSTANTS_BLOOMFILTER_K, GNUNET_CONTAINER_bloomfilter_init(), GNUNET_CRYPTO_eddsa_key_get_public(), GNUNET_CRYPTO_hash(), GNUNET_DHT_RO_RECORD_ROUTE, GNUNET_hex2b(), GNUNET_print_bytes(), TVG_CallbackData::index, TVG_CallbackData::key, NUM_PEERS, TVG_CallbackData::peer_bf, peers, TVG_CallbackData::peers, TVG_CallbackData::peers_hash, TVG_CallbackData::peers_sk, peers_str, print_put_message(), TVG_CallbackData::put_path_len, and TVG_CallbackData::ro.
Referenced by main().
| int main | ( | int | argc, |
| char *const * | argv | ||
| ) |
The main function of the test vector generation tool.
| argc | number of arguments from the command line |
| argv | command line arguments |
Definition at line 234 of file gnunet-dht-tvg.c.
References GNUNET_assert, GNUNET_GETOPT_OPTION_END, GNUNET_log_setup(), GNUNET_OK, GNUNET_OS_project_data_gnunet(), GNUNET_PROGRAM_run(), options, and run().
| struct GNUNET_PILS_Handle* GDS_pils |
Handle for the pils service.
(may be NULL but needed for linking)
Definition at line 40 of file gnunet-dht-tvg.c.
Referenced by run().
|
static |
Definition at line 44 of file gnunet-dht-tvg.c.
Referenced by run().