Ignore:
Timestamp:
10/27/05 14:05:36 (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:
2458162
Parents:
0d82205
Message:

updated changelog
added trace_get_framing_length() to return the capture-format framing (eg, ERF or pcap headers).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_template.c

    r8f4152b r7c8eacf  
    4040# error "Can't find inttypes.h"
    4141#endif
     42
     43extern struct libtrace_format_t template;
    4244
    4345struct libtrace_format_data_t {
     
    111113}
    112114
     115static int template_get_framing_length(const struct libtrace_packet_t *packet) {
     116        return -1;
     117}
     118
    113119static size_t template_set_capture_length(struct libtrace_packet_t *packet,size_t size) {
    114120        return -1;
     
    142148        template_get_capture_length,    /* get_capture_length */
    143149        template_get_wire_length,       /* get_wire_length */
     150        template_get_framing_length,    /* get_framing_length */
    144151        template_set_capture_length,    /* set_capture_length */
    145152        template_get_fd,                /* get_fd */
Note: See TracChangeset for help on using the changeset viewer.