Changeset 749:da9869fe1da8 in mediastreamer2
- Timestamp:
- Oct 27, 2009 1:00:32 PM (4 years ago)
- Branch:
- default
- Location:
- linphone/mediastreamer2
- Files:
-
- 2 edited
-
include/mediastreamer2/ice.h (modified) (1 diff)
-
src/ice.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linphone/mediastreamer2/include/mediastreamer2/ice.h
r311 r749 77 77 78 78 int rem_controlling; 79 UInt64tiebreak_value;79 uint64_t tiebreak_value; 80 80 81 81 #define ICE_CL_RUNNING 0 -
linphone/mediastreamer2/src/ice.c
r729 r749 383 383 checklist->rem_ice_ufrag, 384 384 checklist->loc_ice_ufrag); 385 username.sizeValue = ( UInt16)strlen(username.value);385 username.sizeValue = (uint16_t)strlen(username.value); 386 386 387 387 388 388 snprintf(password.value, sizeof(password.value), "%s", 389 389 checklist->rem_ice_pwd); 390 password.sizeValue = ( UInt16)strlen(password.value);390 password.sizeValue = (uint16_t)strlen(password.value); 391 391 392 392 … … 617 617 if (msg.hasFingerprint==TRUE) 618 618 { 619 char *lenpos = (char *)mp->b_rptr + sizeof( UInt16);620 UInt16newlen = htons(msg.msgHdr.msgLength-8); /* remove fingerprint size */621 memcpy(lenpos, &newlen, sizeof( UInt16));619 char *lenpos = (char *)mp->b_rptr + sizeof(uint16_t); 620 uint16_t newlen = htons(msg.msgHdr.msgLength-8); /* remove fingerprint size */ 621 memcpy(lenpos, &newlen, sizeof(uint16_t)); 622 622 stunCalculateIntegrity_shortterm(hmac, (char*)mp->b_rptr, mp->b_wptr-mp->b_rptr-24-8, checklist->loc_ice_pwd); 623 623 } … … 637 637 if (msg.hasFingerprint==TRUE) 638 638 { 639 char *lenpos = (char *)mp->b_rptr + sizeof( UInt16);640 UInt16newlen = htons(msg.msgHdr.msgLength); /* add back fingerprint size */641 memcpy(lenpos, &newlen, sizeof( UInt16));639 char *lenpos = (char *)mp->b_rptr + sizeof(uint16_t); 640 uint16_t newlen = htons(msg.msgHdr.msgLength); /* add back fingerprint size */ 641 memcpy(lenpos, &newlen, sizeof(uint16_t)); 642 642 } 643 643 } … … 886 886 887 887 { 888 UInt32cookie = 0x2112A442;888 uint32_t cookie = 0x2112A442; 889 889 resp.hasXorMappedAddress = TRUE; 890 890 resp.xorMappedAddress.ipv4.port = remote_addr.port^(cookie>>16); … … 939 939 940 940 { 941 UInt32cookie = 0x2112A442;942 UInt16cookie16 = 0x2112A442 >> 16;941 uint32_t cookie = 0x2112A442; 942 uint16_t cookie16 = 0x2112A442 >> 16; 943 943 mappedAddr.port = resp.xorMappedAddress.ipv4.port^cookie16; 944 944 mappedAddr.addr = resp.xorMappedAddress.ipv4.addr^cookie; … … 1333 1333 } 1334 1334 1335 #if !defined(_WIN32_WCE) 1335 1336 ice_sound_send_stun_request(d->session, d->check_lists, f->ticker->time); 1337 #else 1338 ice_sound_send_stun_request(d->session, d->check_lists, f->ticker->time)); 1339 #endif 1336 1340 } 1337 1341
Note: See TracChangeset
for help on using the changeset viewer.
