Changeset 1880


Ignore:
Timestamp:
Mar 20, 2008 6:26:26 PM (11 years ago)
Author:
bennylp
Message:

More ticket #485: fixed TURN transport code point and REQUESTED-TRANSPORT attribute encoding

Location:
pjproject/trunk/pjnath/include/pjnath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/stun_msg.h

    r1877 r1880  
    10251025 * Get protocol value from 32bit TURN REQUESTED-TRANSPORT attribute. 
    10261026 */ 
    1027 #define PJ_STUN_GET_RT_PROTO(u32)   (u32 >> 24) 
     1027#define PJ_STUN_GET_RT_PROTO(u32)   (pj_ntohl(u32) >> 24) 
    10281028 
    10291029/** 
     
    10311031 * attribute. 
    10321032 */ 
    1033 #define PJ_STUN_SET_RT_PROTO(proto)   (((pj_uint32_t)(proto)) << 24) 
     1033#define PJ_STUN_SET_RT_PROTO(proto)   pj_htonl(((pj_uint32_t)(proto)) << 24) 
    10341034 
    10351035 
  • pjproject/trunk/pjnath/include/pjnath/turn_session.h

    r1867 r1880  
    5959typedef enum pj_turn_tp_type 
    6060{ 
    61     PJ_TURN_TP_UDP = 16,    /**< UDP.   */ 
     61    PJ_TURN_TP_UDP = 17,    /**< UDP.   */ 
    6262    PJ_TURN_TP_TCP = 6,     /**< TCP.   */ 
    6363    PJ_TURN_TP_TLS = 256    /**< TLS.   */ 
Note: See TracChangeset for help on using the changeset viewer.