Changeset 2591 for pjproject/trunk
- Timestamp:
- Apr 13, 2009 6:40:10 PM (16 years ago)
- Location:
- pjproject/trunk/pjnath
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/stun_msg.h
r2589 r2591 1058 1058 * part and thus the attribute length field is 0. 1059 1059 */ 1060 typedef struct pj_stun_empty_attr pj_stun_ use_candidate_attr;1060 typedef struct pj_stun_empty_attr pj_stun_dont_fragment_attr; 1061 1061 1062 1062 -
pjproject/trunk/pjnath/src/pjnath-test/server.c
r2589 r2591 467 467 } 468 468 pj_stun_msg_add_sockaddr_attr(alloc->pool, alloc->data_ind, 469 PJ_STUN_ATTR_ PEER_ADDR, PJ_TRUE,469 PJ_STUN_ATTR_XOR_PEER_ADDR, PJ_TRUE, 470 470 &alloc->alloc_addr, 471 471 pj_sockaddr_get_len(&alloc->alloc_addr)); … … 516 516 resp = create_success_response(test_srv, alloc, req, pool, 0, &auth_key); 517 517 } else if (req->hdr.type == PJ_STUN_SEND_INDICATION) { 518 pj_stun_ peer_addr_attr *pa;518 pj_stun_xor_peer_addr_attr *pa; 519 519 pj_stun_data_attr *da; 520 520 521 521 test_srv->turn_stat.rx_send_ind_cnt++; 522 522 523 pa = (pj_stun_ peer_addr_attr*)524 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_ PEER_ADDR, 0);523 pa = (pj_stun_xor_peer_addr_attr*) 524 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_XOR_PEER_ADDR, 0); 525 525 da = (pj_stun_data_attr*) 526 526 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_DATA, 0); … … 589 589 { 590 590 turn_allocation *alloc; 591 pj_stun_ peer_addr_attr *pa;591 pj_stun_xor_peer_addr_attr *pa; 592 592 pj_stun_data_attr *da; 593 593 char peer_info[PJ_INET6_ADDRSTRLEN+10]; … … 624 624 625 625 /* Format a Data indication */ 626 pa = (pj_stun_ peer_addr_attr*)627 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_ PEER_ADDR, 0);626 pa = (pj_stun_xor_peer_addr_attr*) 627 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_XOR_PEER_ADDR, 0); 628 628 da = (pj_stun_data_attr*) 629 629 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_DATA, 0);
Note: See TracChangeset
for help on using the changeset viewer.