Changeset 50bbce8 for lib/format_erf.c


Ignore:
Timestamp:
11/30/07 08:57:55 (14 years ago)
Author:
Perry Lorier <perry@…>
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
Message:

First pass implementation of loss recording framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rf2fae49 r50bbce8  
    8585                int real_time;
    8686        } options;
     87        uint64_t drops;
    8788};
    8889
     
    148149        INPUT.file = 0;
    149150        IN_OPTIONS.real_time = 0;
     151        DATA(libtrace)->drops = 0;
    150152       
    151153        return 0; /* success */
     
    176178        if (!INPUT.file)
    177179                return -1;
     180
     181        DATA(libtrace)->drops = 0;
    178182
    179183        return 0; /* success */
     
    616620        }
    617621       
     622}
     623
     624static uint64_t erf_get_dropped_packets(libtrace_t *trace)
     625{
     626        return DATA(trace)->drops;
    618627}
    619628
     
    673682        NULL,                           /* get_received_packets */
    674683        NULL,                           /* get_filtered_packets */
    675         NULL,                           /* get_dropped_packets */
     684        erf_get_dropped_packets,        /* get_dropped_packets */
    676685        NULL,                           /* get_captured_packets */
    677686        NULL,                           /* get_fd */
Note: See TracChangeset for help on using the changeset viewer.