Moved typedef to n2n_typedefs.h from n2n_wire.h

This commit is contained in:
Luca Deri 2020-11-13 10:56:18 +01:00
parent 1574f1e1c6
commit 176e17dedf
2 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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 );