Browse Source

fix: move nodeinfo_dyn_size declaration to route_bgp.h

feature/x25519-migration
Evgeny 3 months ago
parent
commit
c0207ad41d
  1. 3
      src/control_server.c
  2. 2
      src/route_bgp.h

3
src/control_server.c

@ -103,9 +103,6 @@ static int control_client_send(struct control_server* server, struct control_cli
static struct ETCP_CONN* find_connection_by_peer_id(struct UTUN_INSTANCE* instance, uint64_t peer_id); static struct ETCP_CONN* find_connection_by_peer_id(struct UTUN_INSTANCE* instance, uint64_t peer_id);
/* From route_bgp.c */
int nodeinfo_dyn_size(struct NODEINFO* node);
/* ETCP ID/subcmd constants for BGP_NODEINFO_PACKET (from route_bgp.h) */ /* ETCP ID/subcmd constants for BGP_NODEINFO_PACKET (from route_bgp.h) */
#define CTRL_BGP_CMD 0x01 #define CTRL_BGP_CMD 0x01
#define CTRL_BGP_SUBCMD 0x04 #define CTRL_BGP_SUBCMD 0x04

2
src/route_bgp.h

@ -162,6 +162,8 @@ void route_bgp_send_withdraw(struct ROUTE_BGP* bgp, uint64_t node_id);
*/ */
struct NODEINFO_Q* route_bgp_get_node(struct ROUTE_BGP* bgp, uint64_t node_id); struct NODEINFO_Q* route_bgp_get_node(struct ROUTE_BGP* bgp, uint64_t node_id);
int nodeinfo_dyn_size(struct NODEINFO* node);
/** /**
* @brief Поиск оптимального ETCP соединения для указанного node_id. * @brief Поиск оптимального ETCP соединения для указанного node_id.
* *

Loading…
Cancel
Save