Ignore:
Timestamp:
02/15/18 17:59:50 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
9375d2e
Parents:
a857389
git-author:
Anthony Coddington <anthony.coddington@…> (02/15/18 13:44:38)
git-committer:
Shane Alcock <salcock@…> (02/15/18 17:59:50)
Message:

Silently discard ERF provenance records when writing PCAP.

Doesn't include other formats for now, which tend to only check for TRACE_TYPE_NONDATA. More thought is needed on genericizing these non-data linktype checks vs the IS_LIBTRACE_META_PACKET check in trace_write_packet() which is currently false for provenance records.
Make pcapfile, pcap and pcapint do the same checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r2c457ec r5a70a80  
    431431        /* Silently discard RT metadata packets and packets with an
    432432         * unknown linktype. */
    433         if (linktype == TRACE_TYPE_NONDATA || linktype == TRACE_TYPE_UNKNOWN) {
     433        if (linktype == TRACE_TYPE_NONDATA || linktype == TRACE_TYPE_UNKNOWN || linktype == TRACE_TYPE_ERF_META) {
    434434                return 0;
    435435        }
Note: See TracChangeset for help on using the changeset viewer.