Changeset 969163a for examples


Ignore:
Timestamp:
07/07/04 14:12:58 (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:
abde7b5
Parents:
139a80d
Message:

wasn't checking for ip packets. duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/rate/rate.c

    r9263981 r969163a  
    109109                //erfptr = (dag_record_t *)buffer;
    110110                //ipptr = (struct ip *)erfptr->rec.eth.pload;
    111                 ipptr = get_ip(trace,buffer,SCANSIZE);
     111                if((ipptr = get_ip(trace,buffer,SCANSIZE)) == 0) {
     112                        continue;
     113                }
     114               
    112115                counter[BYTES][INSTANT] += ntohs(ipptr->ip_len);
    113116                counter[PACKETS][INSTANT] ++;
Note: See TracChangeset for help on using the changeset viewer.