- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjnath/src/pjnath/stun_msg_dump.c
r4537 r5513 87 87 case PJ_STUN_ATTR_ALTERNATE_SERVER: 88 88 { 89 char addr[PJ_INET6_ADDRSTRLEN]; 89 90 const pj_stun_sockaddr_attr *attr; 91 pj_uint16_t af; 90 92 91 93 attr = (const pj_stun_sockaddr_attr*)ahdr; 92 93 if (attr->sockaddr.addr.sa_family == pj_AF_INET()) { 94 af = attr->sockaddr.addr.sa_family; 95 96 if ((af == pj_AF_INET()) || (af == pj_AF_INET6())) { 94 97 len = pj_ansi_snprintf(p, end-p, 95 ", IPv4 addr=%s:%d\n", 96 pj_inet_ntoa(attr->sockaddr.ipv4.sin_addr), 97 pj_ntohs(attr->sockaddr.ipv4.sin_port)); 98 99 } else if (attr->sockaddr.addr.sa_family == pj_AF_INET6()) { 100 len = pj_ansi_snprintf(p, end-p, 101 ", IPv6 addr present\n"); 98 ", %s addr=%s\n", 99 (af == pj_AF_INET())?"IPv4":"IPv6", 100 pj_sockaddr_print(&attr->sockaddr, 101 addr, sizeof(addr),3)); 102 102 } else { 103 103 len = pj_ansi_snprintf(p, end-p,
Note: See TracChangeset
for help on using the changeset viewer.