mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
e23d3a8eda
* fix race
28 lines
516 B
C
28 lines
516 B
C
#ifndef LLARP_PATH_H
|
|
#define LLARP_PATH_H
|
|
|
|
#include <llarp/router_contact.h>
|
|
|
|
#define MAXHOPS (8)
|
|
#define DEFAULT_PATH_LIFETIME (10 * 60 * 1000)
|
|
#define PATH_BUILD_TIMEOUT (30 * 1000)
|
|
#define MESSAGE_PAD_SIZE (1024)
|
|
|
|
struct llarp_path_hop
|
|
{
|
|
struct llarp_rc router;
|
|
byte_t nextHop[PUBKEYSIZE];
|
|
byte_t sessionkey[SHAREDKEYSIZE];
|
|
byte_t pathid[PATHIDSIZE];
|
|
};
|
|
|
|
struct llarp_path_hops
|
|
{
|
|
struct llarp_path_hop hops[MAXHOPS];
|
|
size_t numHops;
|
|
};
|
|
|
|
void
|
|
llarp_path_hops_free(struct llarp_path_hops* hops);
|
|
|
|
#endif |