Ignore:
Timestamp:
Jul 6, 2010 8:11:04 AM (14 years ago)
Author:
nanang
Message:

Fix #1078: added XOR_MAPPED_ADDRESS parsing capability to the resolver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/stun_simple.c

    r2394 r3235  
    8787        pjstun_attr_hdr **attr = &msg->attr[msg->attr_count]; 
    8888        pj_uint32_t len; 
     89        pj_uint16_t attr_type; 
    8990 
    9091        *attr = (pjstun_attr_hdr*)p_attr; 
     
    9899        } 
    99100 
    100         if (pj_ntohs((*attr)->type) > PJSTUN_ATTR_REFLECTED_FORM) { 
     101        attr_type = pj_ntohs((*attr)->type); 
     102        if (attr_type > PJSTUN_ATTR_REFLECTED_FROM && 
     103            attr_type != PJSTUN_ATTR_XOR_MAPPED_ADDR) 
     104        { 
    101105            PJ_LOG(5,(THIS_FILE, "Warning: unknown attr type %x in attr %d. " 
    102106                                 "Attribute was ignored.", 
    103                                  pj_ntohs((*attr)->type), msg->attr_count)); 
     107                                 attr_type, msg->attr_count)); 
    104108        } 
    105109 
Note: See TracChangeset for help on using the changeset viewer.