- Timestamp:
- May 18, 2009 11:49:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/sipit24/pjnath/src/pjnath/ice_strans.c
r2707 r2714 51 51 * specify preference among candidates with the same type. Since 52 52 * we don't have the facility to specify that, we'll just set it 53 * all to zero. 54 */ 55 #define SRFLX_PREF 0 56 #define HOST_PREF 0 57 #define RELAY_PREF 0 53 * all to the same value. 54 */ 55 #if PJNATH_ICE_PRIO_STD 56 # define SRFLX_PREF 65535 57 # define HOST_PREF 65535 58 # define RELAY_PREF 65535 59 #else 60 # define SRFLX_PREF 0 61 # define HOST_PREF 0 62 # define RELAY_PREF 0 63 #endif 64 58 65 59 66 /* The candidate type preference when STUN candidate is used */ 60 67 static pj_uint8_t srflx_pref_table[4] = 61 68 { 69 #if PJNATH_ICE_PRIO_STD 70 100, /**< PJ_ICE_HOST_PREF */ 71 126, /**< PJ_ICE_SRFLX_PREF */ 72 110, /**< PJ_ICE_PRFLX_PREF */ 73 0 /**< PJ_ICE_RELAYED_PREF */ 74 #else 62 75 /* Keep it to 2 bits */ 63 76 1, /**< PJ_ICE_HOST_PREF */ … … 65 78 3, /**< PJ_ICE_PRFLX_PREF */ 66 79 0 /**< PJ_ICE_RELAYED_PREF */ 80 #endif 67 81 }; 68 82
Note: See TracChangeset
for help on using the changeset viewer.