mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Moved typedef to n2n_typedefs.h from n2n_wire.h
This commit is contained in:
parent
1574f1e1c6
commit
176e17dedf
|
@ -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;
|
||||||
|
|
|
@ -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…
Reference in New Issue
Block a user