Browse Source

Moved typedef to n2n_typedefs.h from n2n_wire.h

pull/502/head
Luca Deri 4 years ago
parent
commit
176e17dedf
  1. 8
      include/n2n_typedefs.h
  2. 8
      include/n2n_wire.h

8
include/n2n_typedefs.h

@ -243,6 +243,14 @@ typedef struct n2n_REGISTER_SUPER_NAK
} n2n_REGISTER_SUPER_NAK_t; } 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 { typedef struct n2n_PEER_INFO {
uint16_t aflags; uint16_t aflags;
n2n_mac_t srcMac; n2n_mac_t srcMac;

8
include/n2n_wire.h

@ -35,14 +35,6 @@
#include "sn_selection.h" #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, int encode_uint8( uint8_t * base,
size_t * idx, size_t * idx,
const uint8_t v ); const uint8_t v );

Loading…
Cancel
Save