Changeset 1885


Ignore:
Timestamp:
Mar 21, 2008 9:43:59 AM (16 years ago)
Author:
bennylp
Message:

More ticket #485: wrong encoding of CHANNEL-NUMBER attribute

File:
1 edited

Legend:

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

    r1880 r1885  
    874874 * Get 16bit channel number from 32bit integral value. 
    875875 */ 
    876 #define PJ_STUN_GET_CH_NB(u32)      pj_ntohs((pj_uint16_t)(u32>>16)) 
     876#define PJ_STUN_GET_CH_NB(u32)      ((pj_uint16_t)(u32>>16)) 
    877877 
    878878/** 
    879879 * Convert 16bit channel number into 32bit integral value. 
    880880 */ 
    881 #define PJ_STUN_SET_CH_NB(chnum)    (((pj_uint32_t)pj_htons(chnum)) << 16) 
     881#define PJ_STUN_SET_CH_NB(chnum)    (((pj_uint32_t)chnum) << 16) 
    882882 
    883883 
Note: See TracChangeset for help on using the changeset viewer.