Changeset 969163a for examples/rate/rate.c
- Timestamp:
- 07/07/04 14:12:58 (17 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/rate/rate.c
r9263981 r969163a 109 109 //erfptr = (dag_record_t *)buffer; 110 110 //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 112 115 counter[BYTES][INSTANT] += ntohs(ipptr->ip_len); 113 116 counter[PACKETS][INSTANT] ++;
Note: See TracChangeset
for help on using the changeset viewer.