Changeset 50bbce8 for lib/format_dag25.c
- Timestamp:
- 11/30/07 08:57:55 (14 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:
- 25a9201
- Parents:
- b282cf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dag25.c
rf2fae49 r50bbce8 79 79 uint8_t *top; 80 80 uint32_t processed; 81 uint64_t drops; 81 82 }; 82 83 … … 110 111 DUCK.dummy_duck = NULL; 111 112 FORMAT_DATA->stream_attached = 0; 113 FORMAT_DATA->drops = 0; 112 114 113 115 return 0; … … 181 183 FORMAT_DATA->bottom = NULL; 182 184 FORMAT_DATA->processed = 0; 185 FORMAT_DATA->drops = 0; 183 186 184 187 return 0; … … 329 332 tv = trace_get_timeval(packet); 330 333 DUCK.last_pkt = tv.tv_sec; 334 DATA(libtrace)->drops += ntohs(erfptr->lctr); 331 335 return packet->payload ? htons(erfptr->rlen) : 332 336 erf_get_framing_length(packet); … … 410 414 NULL, /* get_received_packets */ 411 415 NULL, /* get_filtered_packets */ 412 NULL,/* get_dropped_packets */416 dag25_get_dropped_packets, /* get_dropped_packets */ 413 417 NULL, /* get_captured_packets */ 414 418 NULL, /* get_fd */
Note: See TracChangeset
for help on using the changeset viewer.