Changeset 50bbce8 for lib/format_dag25.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_dag25.c

    rf2fae49 r50bbce8  
    7979        uint8_t *top;
    8080        uint32_t processed;
     81        uint64_t drops;
    8182};
    8283
     
    110111        DUCK.dummy_duck = NULL;
    111112        FORMAT_DATA->stream_attached = 0;
     113        FORMAT_DATA->drops = 0;
    112114       
    113115        return 0;
     
    181183        FORMAT_DATA->bottom = NULL;
    182184        FORMAT_DATA->processed = 0;
     185        FORMAT_DATA->drops = 0;
    183186       
    184187        return 0;
     
    329332        tv = trace_get_timeval(packet);
    330333        DUCK.last_pkt = tv.tv_sec;
     334        DATA(libtrace)->drops += ntohs(erfptr->lctr);
    331335        return packet->payload ? htons(erfptr->rlen) :
    332336                                erf_get_framing_length(packet);
     
    410414        NULL,                           /* get_received_packets */
    411415        NULL,                           /* get_filtered_packets */
    412         NULL,                           /* get_dropped_packets */
     416        dag25_get_dropped_packets,      /* get_dropped_packets */
    413417        NULL,                           /* get_captured_packets */
    414418        NULL,                           /* get_fd */
Note: See TracChangeset for help on using the changeset viewer.