Changeset ed5b2ce for lib/libtrace.h.in


Ignore:
Timestamp:
07/03/17 16:31:57 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
8e11beb
Parents:
4578626
Message:

Add support for reading pcapng traces

Also added special macro: IS_LIBTRACE_META_PACKET()
This macro can be used to easily recognise if a "packet" is a
genuine packet record or a meta record (such as a pcapng interface
block or an RT control message).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r317e903 red5b2ce  
    391391        TRACE_FORMAT_LINUX_RING   =15,  /**< Linux native interface capture PACKET_MMAP */
    392392        TRACE_FORMAT_RAWERF       =16,  /**< Special format for reading uncompressed ERF traces without checking for compression */
    393     TRACE_FORMAT_DPDK     =17, /**< The Intel Data Plane Development Kit format */
     393        TRACE_FORMAT_DPDK     =17, /**< The Intel Data Plane Development Kit format */
     394        TRACE_FORMAT_PCAPNG     =18,    /**< PCAP-NG trace file */
    394395};
    395396
     
    417418        TRACE_RT_METADATA       =18,/**< Packet contains server meta-data */
    418419        TRACE_RT_DUCK_5_0       =19,/**< Dag 5.0 Duck */
     420        TRACE_RT_PCAPNG_META    =20,/**< Metadata for a PCAP NG input source */
    419421
    420422        /** Not actually used - all DATA types begin from this value */
     
    480482
    481483        TRACE_RT_DATA_BPF_END           = 3999,
     484
     485        TRACE_RT_DATA_PCAPNG            = 4000,
     486        TRACE_RT_DATA_PCAPNG_END        = 4499,
    482487        /** Unused value marking the end of the valid range for all RT packet
    483488         * types */
    484         TRACE_RT_LAST                   = 4000
     489        TRACE_RT_LAST                   = 4500
    485490} libtrace_rt_types_t;
    486491
     
    551556        void *srcbucket;
    552557} libtrace_packet_t;
     558
     559#define IS_LIBTRACE_META_PACKET(packet) (packet->type < TRACE_RT_DATA_SIMPLE)
    553560
    554561
Note: See TracChangeset for help on using the changeset viewer.