- 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/pjlib-util/src/pjlib-util/pcap.c
r4537 r5513 230 230 pj_ssize_t sz; 231 231 pj_size_t sz_read = 0; 232 char addr[PJ_INET_ADDRSTRLEN]; 232 233 pj_status_t status; 233 234 234 235 TRACE_((file->obj_name, "Reading packet..")); 236 pj_bzero(&addr, sizeof(addr)); 235 237 236 238 /* Read PCAP packet header */ … … 283 285 if (file->filter.ip_src && tmp.ip.ip_src != file->filter.ip_src) { 284 286 TRACE_((file->obj_name, "IP source %s mismatch, skipping", 285 pj_inet_ntoa(*(pj_in_addr*)&tmp.ip.ip_src))); 287 pj_inet_ntop2(pj_AF_INET(), (pj_in_addr*)&tmp.ip.ip_src, 288 addr, sizeof(addr)))); 286 289 SKIP_PKT(); 287 290 continue; … … 291 294 if (file->filter.ip_dst && tmp.ip.ip_dst != file->filter.ip_dst) { 292 295 TRACE_((file->obj_name, "IP detination %s mismatch, skipping", 293 pj_inet_ntoa(*(pj_in_addr*)&tmp.ip.ip_dst))); 296 pj_inet_ntop2(pj_AF_INET(), (pj_in_addr*)&tmp.ip.ip_dst, 297 addr, sizeof(addr)))); 294 298 SKIP_PKT(); 295 299 continue;
Note: See TracChangeset
for help on using the changeset viewer.