Changeset a857389 for lib/libtrace.h.in


Ignore:
Timestamp:
02/15/18 17:59:50 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
5a70a80
Parents:
3004d6c
git-author:
Anthony Coddington <anthony.coddington@…> (02/14/18 16:03:04)
git-committer:
Shane Alcock <salcock@…> (02/15/18 17:59:50)
Message:

Initial support for ERF provenance records

Update erftypes.h with TYPE_META (27).
Check for ERF_TYPE_MAX rather than some arbitrary type in ERF sanity checks. In Wireshark we recently completely removed these checks as there are only a few types before TYPE_PAD/ERF_TYPE_MAX, but leave them in for now.
Add TRACE_TYPE_ERF_META for provenance record payload.
Continue to use TRACE_RT_DATA_ERF as provenance is a valid ERF record. Note: this means that LIBTRACE_IS_META_PACKET() will currently return FALSE which may confuse some tools. Other places in the code also tend to check for TRACE_TYPE_NONDATA which isn't true here either.
Return zero for wire length of provenance records.
Don't allow snapping them (just return the same value).
Skip provenance records in l2 parsers and trace_get_payload_from_meta().
Return provenance payload for trace_get_packet_meta().

Also add support for a couple of missing ERF_TYPE_ETH_COLOR variants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rc7e547e ra857389  
    369369       TRACE_TYPE_METADATA = 18,        /**< WDCAP-style meta-data */
    370370       TRACE_TYPE_NONDATA = 19,         /**< Not a data packet */
    371        TRACE_TYPE_OPENBSD_LOOP = 20     /**< OpenBSD loopback */
     371       TRACE_TYPE_OPENBSD_LOOP = 20,    /**< OpenBSD loopback */
     372       TRACE_TYPE_ERF_META = 21 /**< ERF Provenance metadata record */
    372373} libtrace_linktype_t;
    373374
Note: See TracChangeset for help on using the changeset viewer.