Changeset 6c248a9 for lib/format_rt.c


Ignore:
Timestamp:
03/01/06 11:52:01 (15 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:
30c0246
Parents:
4aa4615
Message:

Add support for the other seek formats.
Fix bugs in other formats to do with _start()/_pause()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    r9fae46b r6c248a9  
    274274
    275275
    276 static int rt_set_format(struct libtrace_t *libtrace,
    277                 struct libtrace_packet_t *packet) {
     276static int rt_set_format(libtrace_t *libtrace, libtrace_packet_t *packet)
     277{
    278278        switch (packet->type) {
    279279                case RT_DATA_ERF:
     
    304304                        return -1;
    305305        }
    306         return 1;
     306        return 0; /* success */
    307307}               
    308308
     
    371371}
    372372       
    373 static int rt_read_packet(struct libtrace_t *libtrace,
    374                 struct libtrace_packet_t *packet) {
     373static int rt_read_packet(libtrace_t *libtrace, libtrace_packet_t *packet) {
    375374       
    376375        rt_header_t pkt_hdr;
     
    443442                                        pkt_hdr.type);
    444443        }
    445         return 1;
    446        
     444        return trace_get_capture_length(packet)+trace_get_framing_length(packet);
    447445}
    448446
Note: See TracChangeset for help on using the changeset viewer.