Changeset 1370
- Timestamp:
- 14/10/08 10:03:46 (3 months ago)
- Files:
-
- trunk/lib/format_pcapfile.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/format_pcapfile.c
r1334 r1370 273 273 sizeof(libtrace_pcapfile_pkt_hdr_t)); 274 274 275 assert(swapl(libtrace,((libtrace_pcapfile_pkt_hdr_t*)packet->buffer)->caplen)<LIBTRACE_PACKET_BUFSIZE); 276 275 277 if (err<0) { 276 278 trace_set_err(libtrace,errno,"reading packet"); … … 367 369 hdr.ts_usec = tv.tv_usec; 368 370 hdr.caplen = trace_get_capture_length(packet); 371 assert(hdr.caplen < LIBTRACE_PACKET_BUFSIZE); 369 372 /* PCAP doesn't include the FCS, we do */ 370 373 if (linktype==TRACE_TYPE_ETH) … … 377 380 else 378 381 hdr.wirelen = trace_get_wire_length(packet); 382 383 assert(hdr.wirelen < LIBTRACE_PACKET_BUFSIZE); 379 384 380 385
