Changeset 847


Ignore:
Timestamp:
06/01/06 14:31:24 (7 years ago)
Author:
perry
Message:

Don't segfault if there is no direction information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/tracereport/dir_report.c

    r501 r847  
    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.