Changeset 5dfa670 for examples


Ignore:
Timestamp:
10/12/04 17:45:25 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
d7d0d3a
Parents:
4eb5172
Message:

fixed bug where it was using old empty buffer, instead of the actual buffer with a packet in it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/erfsplit/erfsplit.c

    r4e92740 r5dfa670  
    6161
    6262
    63 static char     buffer[SCANSIZE];
    6463static char     *inputuri = 0;
    6564static char     *outputfilename = 0;
     
    107106        // set up input files
    108107        if ((trace = trace_create(inputuri)) == 0) {
    109                 printf("trace_create(%s) failed. Bad/nonexistant URI?\n",inputuri);
     108                fprintf(stderr,"trace_create(%s) failed. Bad/nonexistant URI?\n",inputuri);
    110109                exit(0);
    111110        }
     
    141140                if (stv == 0 || ts > stv) {
    142141                        if (ftv == 0 || ts <= ftv) {
    143                                 fwrite(buffer,psize,1,outfile);
     142                                fwrite(packet.buffer,psize,1,outfile);
    144143                        }
    145144                }
Note: See TracChangeset for help on using the changeset viewer.