Ignore:
Timestamp:
10/05/09 14:30:03 (11 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:
f0fa090
Parents:
2e6f811
Message:

Fix display of sport/dport headers.
Fix display of nonIP packets protocols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracetop/tracetop.cc

    rc9754d0 re7307f9  
    164164                flowkey.dip.ss_family = AF_UNSPEC;
    165165        if (use_protocol && trace_get_transport(packet,&flowkey.protocol, NULL) == NULL)
    166                 flowkey.protocol = 0;
     166                flowkey.protocol = 255;
    167167        if (use_sport) flowkey.sport = trace_get_source_port(packet);
    168168        if (use_dport) flowkey.dport = trace_get_destination_port(packet);
     
    229229        }
    230230        if (use_sport)
    231                 printw("%d\t", "sport");
     231                printw("%s\t", "sport");
    232232        if (use_dip) {
    233233                printw("%20s", "dest ip");
     
    238238        }
    239239        if (use_dport)
    240                 printw("%d\t", "dport");
     240                printw("%s\t", "dport");
    241241        if (use_protocol)
    242242                printw("proto\t");
Note: See TracChangeset for help on using the changeset viewer.