Changeset c3e6e47 for tools/tracereport


Ignore:
Timestamp:
03/03/06 17:36:04 (16 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:
eeab9832
Parents:
7dda48a
Message:

Update to support libtrace3, also fix (minor) warnings where possible!

Location:
tools/tracereport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tools/tracereport/contain.h

    r49ce177 rc3e6e47  
    105105                keytype b = ((struct _map_t*)_map_b)->key;              \
    106106                return (exp);                                           \
    107         };
     107        }
    108108               
    109109               
     
    158158        int name ## _cmp(const splay *a,const splay *b) {               \
    159159                return cmp(((name ## _t*)a)->key,((name ## _t *)b)->key); \
    160         };
     160        }
    161161
    162162#define SET_INSERT(name,vkey) \
  • tools/tracereport/port_report.c

    re3b0188 rc3e6e47  
    1616{
    1717        struct libtrace_ip *ip = trace_get_ip(packet);
     18        int port;
    1819        if (!ip)
    1920                return;
    2021
    21         int port = trace_get_server_port(ip->ip_p,
     22        port = trace_get_server_port(ip->ip_p,
    2223                        trace_get_source_port(packet),
    2324                        trace_get_destination_port(packet))==USE_SOURCE
  • tools/tracereport/tracereport.c

    rd56089a rc3e6e47  
    6666
    6767        trace = trace_create(uri);
     68        if (trace_is_err(trace)) {
     69                trace_perror(trace,"trace_create");
     70                return 1;
     71        }
     72
     73        if (trace_start(trace)==-1) {
     74                trace_perror(trace,"trace_start");
     75                return 1;
     76        }
    6877
    6978        for (;;) {
Note: See TracChangeset for help on using the changeset viewer.