Changeset 67cd8c1 for test


Ignore:
Timestamp:
08/21/06 23:27:27 (14 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:
fd33292
Parents:
aa8b366
Message:

Count the number of TCP packets too (to catch if we ever break decoders to not
decode TCP/IP properly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-convert.c

    rf208f92 r67cd8c1  
    103103        int level = 0;
    104104        int expected = 100;
     105        int tcpcount = 0;
    105106        libtrace_t *trace,*trace2;
    106107        libtrace_out_t *outtrace;
     
    167168        packet2=trace_create_packet();
    168169        count=0;
     170        tcpcount=0;
    169171        while(trace_read_packet(trace,packet)>0) {
    170172                int err;
     
    187189                                break;
    188190                        }
     191                        ++tcpcount;
    189192                } else {
    190193                        if (trace_get_tcp(packet2)) {
     
    205208        trace_destroy_packet(packet2);
    206209
     210        printf("tcpcount=%i\n",tcpcount);
     211
    207212        return error;
    208213}
Note: See TracChangeset for help on using the changeset viewer.