Changeset 3840760 for tools/tracereport


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/tracereport/tracereport.c

    re3b0188 r3840760  
    6161void run_trace(char *uri)
    6262{
    63         struct libtrace_packet_t packet;
     63        struct libtrace_packet_t *packet = trace_packet_create();
    6464
    6565        fprintf(stderr,"%s:\n",uri);
     
    6969        for (;;) {
    7070                int psize;
    71                 if ((psize = trace_read_packet(trace, &packet)) <1) {
     71                if ((psize = trace_read_packet(trace, packet)) <1) {
    7272                        break;
    7373                }
    7474
    75                 error_per_packet(&packet);
    76                 port_per_packet(&packet);
    77                 protocol_per_packet(&packet);
    78                 tos_per_packet(&packet);
    79                 ttl_per_packet(&packet);
    80                 flow_per_packet(&packet);
    81                 dir_per_packet(&packet);
     75                error_per_packet(packet);
     76                port_per_packet(packet);
     77                protocol_per_packet(packet);
     78                tos_per_packet(packet);
     79                ttl_per_packet(packet);
     80                flow_per_packet(packet);
     81                dir_per_packet(packet);
    8282
    8383        }
Note: See TracChangeset for help on using the changeset viewer.