Changeset 1923 for pjproject


Ignore:
Timestamp:
Apr 10, 2008 10:24:23 PM (17 years ago)
Author:
bennylp
Message:

More ticket #485: fixed REQUESTED-TRANSPORT endianness

File:
1 edited

Legend:

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

    r1888 r1923  
    10311031 * Get protocol value from 32bit TURN REQUESTED-TRANSPORT attribute. 
    10321032 */ 
    1033 #define PJ_STUN_GET_RT_PROTO(u32)   (pj_ntohl(u32) >> 24) 
     1033#define PJ_STUN_GET_RT_PROTO(u32)   (u32 >> 24) 
    10341034 
    10351035/** 
     
    10371037 * attribute. 
    10381038 */ 
    1039 #define PJ_STUN_SET_RT_PROTO(proto)   pj_htonl(((pj_uint32_t)(proto)) << 24) 
     1039#define PJ_STUN_SET_RT_PROTO(proto)   (((pj_uint32_t)(proto)) << 24) 
    10401040 
    10411041 
Note: See TracChangeset for help on using the changeset viewer.