Route UTUN configuration and group ownership through NCD
This commit is contained in:
1 parent
9745a987ac
commit
bce17d9cfc
21 files changed
+592
-332
No files matched your search
@@ -117,8 +117,8 @@ struct TOPOMSG_SUBNET4 { uint8_t addr[4]; uint8_t prefix_length; } __attribute
|
||||
struct TOPOMSG_SUBNET6 { uint8_t addr[16]; uint8_t prefix_length; } __attribute__((packed));
|
||||
|
||||
/* Reality-камуфляж сокета: что нужно клиенту для подключения к reality TCP-сокету.
|
||||
* short_id(8) + server_pubkey(32) + version(3) + server_name(фиксированный 64). */
|
||||
#define TOPO_REALITY_SNAME_MAX 64
|
||||
* short_id(8) + server_pubkey(32) + version(3) + server_name(фиксированный 256). */
|
||||
#define TOPO_REALITY_SNAME_MAX 256
|
||||
struct TOPOMSG_REALITY_SOCK {
|
||||
uint8_t socket_id;
|
||||
uint8_t short_id[8];
|
||||
@@ -160,7 +160,7 @@ struct TOPO_REALITY_SOCK {
|
||||
};
|
||||
|
||||
/* Reality-параметры адреса для персистенции в node_addresses.options (BLOB, фиксированный размер). */
|
||||
#define TOPO_ADDR_REALITY_OPTS_SIZE 107
|
||||
#define TOPO_ADDR_REALITY_OPTS_SIZE (8 + 32 + 3 + TOPO_REALITY_SNAME_MAX)
|
||||
struct TOPO_ADDR_REALITY_OPTS {
|
||||
uint8_t short_id[8];
|
||||
uint8_t server_pubkey[32];
|
||||
@@ -253,6 +253,7 @@ uint16_t topo_get_chain_rtt(struct TOPO_GROUP_NODE* nq);
|
||||
|
||||
/** Build canonical message for Ed25519 signature: x25519_pubkey || name || client_type || client_activity || addresses */
|
||||
#define TOPO_SIG_MSG_MAX_SIZE 2048
|
||||
#define TOPO_NODE_WIRE_MAX_SIZE 16384
|
||||
int topo_node_build_sig_msg(struct TOPO_NODE* ni, uint8_t* buf, size_t buf_size);
|
||||
|
||||
/** Sign self NODEINFO with Ed25519: build_sig_msg + sc_ed25519_sign → ni->x25519_self_sig */
|
||||
|
||||
Reference in new issue
Block a user