- Timestamp:
- Mar 10, 2007 11:15:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjstun-srv-test/bind_usage.c
r1049 r1054 163 163 164 164 /* Create MAPPED-ADDRESS attribute */ 165 status = pj_stun_msg_add_ ip_addr_attr(tdata->pool, tdata->msg,166 PJ_STUN_ATTR_MAPPED_ADDR,167 PJ_FALSE,168 src_addr, src_addr_len);165 status = pj_stun_msg_add_sockaddr_attr(tdata->pool, tdata->msg, 166 PJ_STUN_ATTR_MAPPED_ADDR, 167 PJ_FALSE, 168 src_addr, src_addr_len); 169 169 if (status != PJ_SUCCESS) { 170 170 pj_stun_perror(THIS_FILE, "Error creating response", status); … … 176 176 if (msg->hdr.magic == PJ_STUN_MAGIC) { 177 177 status = 178 pj_stun_msg_add_ ip_addr_attr(tdata->pool, tdata->msg,179 PJ_STUN_ATTR_XOR_MAPPED_ADDR,180 PJ_TRUE,181 src_addr, src_addr_len);178 pj_stun_msg_add_sockaddr_attr(tdata->pool, tdata->msg, 179 PJ_STUN_ATTR_XOR_MAPPED_ADDR, 180 PJ_TRUE, 181 src_addr, src_addr_len); 182 182 if (status != PJ_SUCCESS) { 183 183 pj_stun_perror(THIS_FILE, "Error creating response", status);
Note: See TracChangeset
for help on using the changeset viewer.