changed order of server and peer reflexive endpoints (and also the priorities)

This commit is contained in:
Tobias Brunner 2008-03-31 10:56:49 +00:00
parent 0f7ef3d2a0
commit f98736aee6
2 changed files with 8 additions and 8 deletions

View File

@ -73,8 +73,8 @@ struct private_endpoint_notify_t {
ENUM(me_endpoint_type_names, HOST, RELAYED,
"HOST",
"SERVER_REFLEXIVE",
"PEER_REFLEXIVE",
"SERVER_REFLEXIVE",
"RELAYED"
);
@ -362,12 +362,12 @@ endpoint_notify_t *endpoint_notify_create_from_host(me_endpoint_type_t type, hos
case HOST:
this->priority = pow(2, 16) * ME_PRIO_HOST;
break;
case SERVER_REFLEXIVE:
this->priority = pow(2, 16) * ME_PRIO_SERVER;
break;
case PEER_REFLEXIVE:
this->priority = pow(2, 16) * ME_PRIO_PEER;
break;
case SERVER_REFLEXIVE:
this->priority = pow(2, 16) * ME_PRIO_SERVER;
break;
case RELAYED:
default:
this->priority = pow(2, 16) * ME_PRIO_RELAY;

View File

@ -24,8 +24,8 @@
#define ENDPOINT_NOTIFY_H_
#define ME_PRIO_HOST 255
#define ME_PRIO_SERVER 100
#define ME_PRIO_PEER 120
#define ME_PRIO_PEER 128
#define ME_PRIO_SERVER 64
#define ME_PRIO_RELAY 0
typedef enum me_endpoint_family_t me_endpoint_family_t;
@ -58,9 +58,9 @@ enum me_endpoint_type_t {
HOST = 1,
SERVER_REFLEXIVE = 2,
PEER_REFLEXIVE = 2,
PEER_REFLEXIVE = 3,
SERVER_REFLEXIVE = 3,
RELAYED = 4,