Ignore:
Timestamp:
11/28/05 10:15:22 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
08594b8
Parents:
14d8a63
Message:

updated the examples/ and tools/ directories to correctly use trace_packet_create() now.

fixed a typo in format_wag (shouldn't use pcap_get_framing_length for wag!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracedump/tracedump.cc

    r0c9681f r3840760  
    2020{
    2121        struct libtrace_t *trace = NULL;
    22         struct libtrace_packet_t packet;
     22        struct libtrace_packet_t *packet = trace_packet_create();
    2323        struct libtrace_filter_t *filter=NULL;
    2424        uint64_t count=0;
     
    6565                }
    6666
    67                 while(trace_read_packet(trace,&packet)> 0 ){
    68                         if (filter && !trace_bpf_filter(filter,&packet))
     67                while(trace_read_packet(trace,packet)> 0 ){
     68                        if (filter && !trace_bpf_filter(filter,packet))
    6969                                continue;
    7070
    71                         trace_dump_packet(&packet);
     71                        trace_dump_packet(packet);
    7272                        if(count) {
    7373                                numpackets++;
Note: See TracChangeset for help on using the changeset viewer.