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

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

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.