Changeset 5dd06d6


Ignore:
Timestamp:
03/23/09 17:03:27 (13 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:
2528816
Parents:
59751a5
Message:

Clear to the bottom of the screen erasing old expired flows
Make sure the protocol is set to 0 if undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    r59751a5 r5dd06d6  
    130130        if (trace_get_destination_address(packet,(struct sockaddr*)&flowkey.dip)==NULL)
    131131                flowkey.dip.ss_family = AF_UNSPEC;
    132         trace_get_transport(packet,&flowkey.protocol, NULL);
     132        if (trace_get_transport(packet,&flowkey.protocol, NULL) == NULL)
     133                flowkey.protocol = NULL;
    133134        flowkey.sport = trace_get_source_port(packet);
    134135        flowkey.dport = trace_get_destination_port(packet);
     
    204205        flows.clear();
    205206
     207        clrtobot();
    206208        refresh();
    207209}
Note: See TracChangeset for help on using the changeset viewer.