improved P2P_ENDPOINT debugging
This commit is contained in:
@@ -76,6 +76,13 @@ struct private_endpoint_notify_t {
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
*/
|
||||
|
||||
ENUM(p2p_endpoint_type_names, HOST, RELAYED,
|
||||
"HOST",
|
||||
"SERVER_REFLEXIVE",
|
||||
"PEER_REFLEXIVE",
|
||||
"RELAYED"
|
||||
);
|
||||
|
||||
/**
|
||||
* Helper functions to parse integer values
|
||||
*/
|
||||
@@ -251,7 +258,7 @@ static u_int32_t get_priority(private_endpoint_notify_t *this)
|
||||
*/
|
||||
static void set_priority(private_endpoint_notify_t *this, u_int32_t priority)
|
||||
{
|
||||
return this->priority = priority;
|
||||
this->priority = priority;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,6 +35,11 @@ typedef struct endpoint_notify_t endpoint_notify_t;
|
||||
|
||||
#include <encoding/payloads/notify_payload.h>
|
||||
|
||||
/**
|
||||
* @brief P2P endpoint families.
|
||||
*
|
||||
* @ingroup payloads
|
||||
*/
|
||||
enum p2p_endpoint_family_t {
|
||||
|
||||
NO_FAMILY = 0,
|
||||
@@ -47,6 +52,11 @@ enum p2p_endpoint_family_t {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief P2P endpoint types.
|
||||
*
|
||||
* @ingroup payloads
|
||||
*/
|
||||
enum p2p_endpoint_type_t {
|
||||
|
||||
NO_TYPE = 0,
|
||||
@@ -63,6 +73,13 @@ enum p2p_endpoint_type_t {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* enum name for p2p_endpoint_type_t.
|
||||
*
|
||||
* @ingroup payloads
|
||||
*/
|
||||
extern enum_name_t *p2p_endpoint_type_names;
|
||||
|
||||
/**
|
||||
* @brief Class representing a P2P_ENDPOINT notify. In fact it's not
|
||||
* the notify per se, but the notification data of that notify that is
|
||||
|
||||
Reference in New Issue
Block a user