diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-04-10 22:24:23 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-04-10 22:24:23 +0000 |
commit | 848e880ca8c2811caeccceba3f325d28c63adec0 (patch) | |
tree | 212f5999b77e41b0d5e6306dc62b9ad5fd131a3b /pjnath/include | |
parent | 5d636438207abb1becc53c4391081461f4f56905 (diff) |
More ticket #485: fixed REQUESTED-TRANSPORT endianness
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1923 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/include')
-rw-r--r-- | pjnath/include/pjnath/stun_msg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjnath/include/pjnath/stun_msg.h b/pjnath/include/pjnath/stun_msg.h index 5cf0f6c9..c88397bc 100644 --- a/pjnath/include/pjnath/stun_msg.h +++ b/pjnath/include/pjnath/stun_msg.h @@ -1030,13 +1030,13 @@ typedef struct pj_stun_uint_attr pj_stun_req_transport_attr; /** * Get protocol value from 32bit TURN REQUESTED-TRANSPORT attribute. */ -#define PJ_STUN_GET_RT_PROTO(u32) (pj_ntohl(u32) >> 24) +#define PJ_STUN_GET_RT_PROTO(u32) (u32 >> 24) /** * Convert protocol value to be placed in 32bit TURN REQUESTED-TRANSPORT * attribute. */ -#define PJ_STUN_SET_RT_PROTO(proto) pj_htonl(((pj_uint32_t)(proto)) << 24) +#define PJ_STUN_SET_RT_PROTO(proto) (((pj_uint32_t)(proto)) << 24) |