/dports/net-im/tox/c-toxcore-0.2.13/toxcore/ |
H A D | DHT.h | 139 typedef struct Node_format { struct 142 } Node_format; typedef 173 int pack_nodes(uint8_t *data, uint16_t length, const Node_format *nodes, uint16_t number); 182 int unpack_nodes(Node_format *nodes, uint16_t max_num_nodes, uint16_t *processed_data_len, const ui… 297 bool add_to_list(Node_format *nodes_list, uint32_t length, const uint8_t *pk, IP_Port ip_port, 314 int get_close_nodes(const DHT *dht, const uint8_t *public_key, Node_format *nodes_list, Family sa_f… 322 uint16_t randfriends_nodes(DHT *dht, Node_format *nodes, uint16_t max_num); 328 uint16_t closelist_nodes(DHT *dht, Node_format *nodes, uint16_t max_num);
|
H A D | DHT.c | 70 Node_format to_bootstrap[MAX_SENT_NODES]; 97 Node_format *loaded_nodes_list; 1308 Node_format receiver; in getnodes() 1439 memcpy(sendback_node, data + sizeof(Node_format), sizeof(Node_format)); in sent_getnode_to_node() 1444 Node_format test; in sent_getnode_to_node() 1496 Node_format sendback_node; in handle_sendnodes_core() 2422 Node_format node; in handle_hardening() 2423 Node_format tocheck_node; in handle_hardening() 2618 Node_format to_test; in do_hardening() 2837 Node_format *clients = (Node_format *)malloc(MAX_SAVED_DHT_NODES * sizeof(Node_format)); in dht_save() [all …]
|
H A D | onion_announce.h | 23 #define ONION_ANNOUNCE_RESPONSE_MAX_SIZE (ONION_ANNOUNCE_RESPONSE_MIN_SIZE + sizeof(Node_format)*MA… 84 int send_announce_request(Networking_Core *net, const Onion_Path *path, Node_format dest, const uin…
|
H A D | onion.h | 78 int create_onion_path(const DHT *dht, Onion_Path *new_path, const Node_format *nodes); 85 int onion_path_to_nodes(Node_format *nodes, unsigned int num_nodes, const Onion_Path *path);
|
H A D | onion_client.c | 123 Node_format path_nodes[MAX_PATH_NODES]; 126 Node_format path_nodes_bs[MAX_PATH_NODES]; 373 Node_format nodes[ONION_PATH_LENGTH]; in random_path() 441 Node_format nodes[ONION_PATH_LENGTH]; in set_path_timeouts() 883 Node_format nodes[MAX_SENT_NODES]; in handle_announce_response() 941 #define DHTPK_DATA_MAX_LENGTH (DHTPK_DATA_MIN_LENGTH + sizeof(Node_format)*MAX_SENT_NODES) 981 Node_format nodes[MAX_SENT_NODES]; in handle_dhtpk_announce() 1202 Node_format nodes[MAX_SENT_NODES]; in send_dhtpk_announce() 1502 Node_format nodes_list[MAX_FRIEND_CLIENTS]; in populate_path_nodes() 1515 Node_format nodes_list[MAX_SENT_NODES]; in populate_path_nodes_tcp() [all …]
|
H A D | onion_client.h | 69 uint16_t onion_backup_nodes(const Onion_Client *onion_c, Node_format *nodes, uint16_t max_num);
|
H A D | friend_connection.c | 53 Node_format tcp_relays[FRIEND_MAX_STORED_TCP_RELAYS]; 229 memset(&friend_con->tcp_relays[i], 0, sizeof(Node_format)); in friend_add_tcp_relay() 269 Node_format nodes[MAX_SHARED_RELAYS]; in send_relays() 462 Node_format nodes[MAX_SHARED_RELAYS]; in handle_packet()
|
H A D | TCP_connection.h | 198 uint32_t tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_nu…
|
H A D | DHT_test.cc | 89 std::array<Node_format, 4> nodes{}; in TEST()
|
H A D | net_crypto.h | 288 unsigned int copy_connected_tcp_relays(Net_Crypto *c, Node_format *tcp_relays, uint16_t num);
|
H A D | onion_announce.c | 158 int send_announce_request(Networking_Core *net, const Onion_Path *path, Node_format dest, const uin… in send_announce_request() 400 Node_format nodes_list[MAX_SENT_NODES]; in handle_announce_request()
|
H A D | onion.c | 107 int create_onion_path(const DHT *dht, Onion_Path *new_path, const Node_format *nodes) in create_onion_path() 143 int onion_path_to_nodes(Node_format *nodes, unsigned int num_nodes, const Onion_Path *path) in onion_path_to_nodes()
|
H A D | ping.c | 39 Node_format to_ping[MAX_TO_PING];
|
H A D | Messenger.h | 269 Node_format loaded_relays[NUM_SAVED_TCP_RELAYS]; // Relays loaded from config
|
H A D | Messenger.c | 3094 Node_format relays[NUM_SAVED_TCP_RELAYS]; in save_tcp_relays() 3099 memcpy(relays, m->loaded_relays, sizeof(Node_format) * m->num_loaded_relays); in save_tcp_relays() 3141 Node_format nodes[NUM_SAVED_PATH_NODES]; in save_path_nodes() 3159 Node_format nodes[NUM_SAVED_PATH_NODES]; in load_path_nodes()
|
H A D | TCP_connection.c | 1269 uint32_t tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_nu… in tcp_copy_connected_relays()
|
H A D | net_crypto.c | 2271 unsigned int copy_connected_tcp_relays(Net_Crypto *c, Node_format *tcp_relays, uint16_t num) in copy_connected_tcp_relays()
|
/dports/net-im/tox/c-toxcore-0.2.13/auto_tests/ |
H A D | onion_test.c | 188 Node_format n1; in test_basic() 193 Node_format n2; in test_basic() 202 Node_format nodes[4]; in test_basic()
|
H A D | dht_test.c | 549 Node_format ln[MAX_SENT_NODES]; in test_list_main() 721 static void dht_pack_unpack(const Node_format *nodes, size_t size, uint8_t *data, size_t length) in dht_pack_unpack() 727 VLA(Node_format, nodes_unpacked, size); in dht_pack_unpack() 775 Node_format nodes[MAX_COUNT]; in test_dht_node_packing()
|