diff --git a/include/n2n_typedefs.h b/include/n2n_typedefs.h index 7c52d92..8053d07 100644 --- a/include/n2n_typedefs.h +++ b/include/n2n_typedefs.h @@ -243,6 +243,14 @@ typedef struct n2n_REGISTER_SUPER_NAK } n2n_REGISTER_SUPER_NAK_t; +/* REGISTER_SUPER_ACK may contain extra payload (their number given by num_sn) + * of following type describing a(nother) supernode */ +typedef struct n2n_REGISTER_SUPER_ACK_payload { + n2n_sock_t sock; /**< socket of supernode */ + n2n_mac_t mac; /**< MAC of supernode */ +} n2n_REGISTER_SUPER_ACK_payload_t; + + typedef struct n2n_PEER_INFO { uint16_t aflags; n2n_mac_t srcMac; diff --git a/include/n2n_wire.h b/include/n2n_wire.h index f651042..89cffd3 100644 --- a/include/n2n_wire.h +++ b/include/n2n_wire.h @@ -35,14 +35,6 @@ #include "sn_selection.h" -/* REGISTER_SUPER_ACK may contain extra payload (their number given by num_sn) - * of following type describing a(nother) supernode */ -typedef struct n2n_REGISTER_SUPER_ACK_payload { - n2n_sock_t sock; /**< socket of supernode */ - n2n_mac_t mac; /**< MAC of supernode */ -} n2n_REGISTER_SUPER_ACK_payload_t; - - int encode_uint8( uint8_t * base, size_t * idx, const uint8_t v );