Changeset 1974620 for lib/libtrace_int.h


Ignore:
Timestamp:
08/25/05 20:01:13 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
b5cd711
Parents:
3073c04
Message:

added format conversion into pcap and erf formats, and have tested the writers for these formats.

Added a 'type' field to the format_t structure, which specifies the type of trace we're dealing with - erf, pcap, wag.

updated munge to use the new functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    rffc8c8d r1974620  
    153153        char *name;
    154154        char *version;
     155        char *type;
    155156        int (*init_input)(struct libtrace_t *libtrace);
    156157        int (*init_output)(struct libtrace_out_t *libtrace);
     
    158159        int (*fin_input)(struct libtrace_t *libtrace);
    159160        int (*fin_output)(struct libtrace_out_t *libtrace);
    160 //      int (*read)(struct libtrace_t *libtrace, void *buffer, size_t len);
    161161        int (*read_packet)(struct libtrace_t *libtrace, struct libtrace_packet_t *packet);
    162162        int (*write_packet)(struct libtrace_out_t *libtrace, struct libtrace_packet_t *packet);
     
    170170        int (*get_capture_length)(const struct libtrace_packet_t *packet);
    171171        int (*get_wire_length)(const struct libtrace_packet_t *packet);
    172         size_t (*truncate_packet)(const struct libtrace_packet_t *packet,size_t size);
     172        size_t (*truncate_packet)(struct libtrace_packet_t *packet,size_t size);
    173173        int (*get_fd)(struct libtrace_packet_t *packet);
    174174        struct libtrace_eventobj_t (*trace_event)(struct libtrace_t *trace, struct libtrace_packet_t *packet); 
Note: See TracChangeset for help on using the changeset viewer.