Changeset 25a9201
- Timestamp:
- 12/03/07 23:09:42 (15 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:
- 25024fd
- Parents:
- 50bbce8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
r50bbce8 r25a9201 493 493 } 494 494 495 /* Linux doesn't keep track how many packets were seen before filtering 496 * so we can't tell how many packets were filtered. Bugger. So annoying. 497 */ 498 static uint64_t linuxnative_get_filtered_packets(libtrace_t *trace) { 499 return UINT64_MAX; 500 } 501 502 /* Number of packets that past filtering */ 495 503 static uint64_t linuxnative_get_captured_packets(libtrace_t *trace) { 496 504 if (FORMAT(trace->format_data)->stats_valid != 2) { … … 507 515 } 508 516 517 /* Number of packets that got past filtering and were then dropped because 518 * of lack of space 519 */ 509 520 static uint64_t linuxnative_get_dropped_packets(libtrace_t *trace) { 510 521 if (FORMAT(trace->format_data)->stats_valid != 1) { … … 561 572 NULL, /* set_capture_length */ 562 573 NULL, /* get_received_packets */ 563 NULL,/* get_filtered_packets */574 linuxnative_get_filtered_packets,/* get_filtered_packets */ 564 575 linuxnative_get_dropped_packets,/* get_dropped_packets */ 565 576 linuxnative_get_captured_packets,/* get_captured_packets */
Note: See TracChangeset
for help on using the changeset viewer.