Changeset 3b49843


Ignore:
Timestamp:
06/01/06 14:31:24 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
6f9aaee
Parents:
fc0f131
Message:

Don't segfault if there is no direction information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/dir_report.c

    re3b0188 r3b49843  
    1111void dir_per_packet(struct libtrace_packet_t *packet)
    1212{
     13        if (trace_get_direction(packet)==-1)
     14                return;
    1315        dir_bytes[trace_get_direction(packet)]+=trace_get_wire_length(packet);
    1416        ++dir_packets[trace_get_direction(packet)];
Note: See TracChangeset for help on using the changeset viewer.