Commit a0dc0a5a authored by Olivier Crête's avatar Olivier Crête

Use replace unclear STUN_USAGE_TURN_REQUEST_PORT_BOTH with EVEN_AND_RESERVE

parent cb501e57
......@@ -98,8 +98,7 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg,
uint32_t req = 0;
if ((request_props & STUN_USAGE_TURN_REQUEST_PORT_BOTH) ==
STUN_USAGE_TURN_REQUEST_PORT_BOTH){
if (request_props & STUN_USAGE_TURN_REQUEST_PORT_EVEN_AND_RESERVE) {
req |= REQUESTED_PROPS_R;
req |= REQUESTED_PROPS_E;
} else if (request_props & STUN_USAGE_TURN_REQUEST_PORT_EVEN) {
......
......@@ -51,11 +51,10 @@ extern "C" {
# endif
#define STUN_USAGE_TURN_REQUEST_PORT_NORMAL 0
#define STUN_USAGE_TURN_REQUEST_PORT_ODD 1
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN 2
#define STUN_USAGE_TURN_REQUEST_PORT_BOTH 3
#define STUN_USAGE_TURN_REQUEST_PORT_PRESERVING 8
#define STUN_USAGE_TURN_REQUEST_PORT_NORMAL (0)
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN (1)
#define STUN_USAGE_TURN_REQUEST_PORT_EVEN_AND_RESERVE (1<<1)
#define STUN_USAGE_TURN_REQUEST_PORT_PRESERVING (1<<2)
typedef enum {
STUN_USAGE_TURN_COMPATIBILITY_TD9,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment