Changeset d3320d1 for lib/format_pcapfile.c
- Timestamp:
- 07/16/10 11:42:23 (12 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 53f179f
- Parents:
- b185327
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcapfile.c
r325f86f rd3320d1 187 187 188 188 DATA(libtrace)->started = true; 189 190 if (err<1) 189 assert(sizeof(DATA(libtrace)->header) > 0); 190 191 if (err<1) { 192 191 193 return -1; 194 } 192 195 193 196 if (swapl(libtrace,DATA(libtrace)->header.magic_number) != … … 457 460 hdr.wirelen = trace_get_wire_length(packet); 458 461 459 assert(hdr.wirelen < LIBTRACE_PACKET_BUFSIZE); 462 /* Reason for removing this assert: 463 * 464 * There exist some packets, e.g. in IPLS II, where the wire length 465 * is clearly corrupt. When converting to pcap, we *could* try to 466 * adjust the wire length to something sane but for now, I'll just let 467 * the broken length persist through the conversion. 468 * 469 * XXX Is setting the wire length to zero the best solution in such 470 * cases? 471 */ 472 473 /* assert(hdr.wirelen < LIBTRACE_PACKET_BUFSIZE); */ 460 474 461 475 /* Ensure we have a valid capture length, especially if we're going
Note: See TracChangeset
for help on using the changeset viewer.