Commit 51a59d4b authored by aymeric's avatar aymeric

fix linux compilation

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@320 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent ca58bdd4
......@@ -50,11 +50,11 @@ ice_sendtest( struct IceCheckList *checklist, struct CandidatePair *remote_candi
check */
req.hasPriority = TRUE;
UCHAR type_preference = 110;
UCHAR interface_preference = 255;
UCHAR stun_priority=255;
req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - remote_candidate->remote_candidate.component_id);
uint32_t type_preference = 110;
uint32_t interface_preference = 255;
uint32_t stun_priority=255;
req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - remote_candidate->remote_candidate.component_id);
/* TODO: put this parameter only for the candidate selected */
if (remote_candidate->nominated_pair==1)
......@@ -810,11 +810,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch
new_pair.remote_candidate.priority = msg.priority.priority;
if (new_pair.remote_candidate.priority==0)
{
UCHAR type_preference = 110;
UCHAR interface_preference = 255;
UCHAR stun_priority=255;
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - new_pair.remote_candidate.component_id);
uint32_t type_preference = 110;
uint32_t interface_preference = 255;
uint32_t stun_priority=255;
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - new_pair.remote_candidate.component_id);
}
snprintf(new_pair.remote_candidate.cand_type, sizeof(cand_pair->remote_candidate.cand_type),
......@@ -1081,11 +1081,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch
snprintf(new_pair.local_candidate.conn_addr, sizeof(new_pair.local_candidate.conn_addr),
"%s", mapped_addr);
UCHAR type_preference = 110;
UCHAR interface_preference = 255;
UCHAR stun_priority=255;
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - new_pair.remote_candidate.component_id);
uint32_t type_preference = 110;
uint32_t interface_preference = 255;
uint32_t stun_priority=255;
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
| (256 - new_pair.remote_candidate.component_id);
snprintf(new_pair.local_candidate.cand_type, sizeof(cand_pair->local_candidate.cand_type),
"prflx");
......
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