Changeset 509ee47 for lib/libtrace.h.in


Ignore:
Timestamp:
12/10/18 14:52:43 (2 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
418c78d
Parents:
54ef438
Message:

Add option to allow users to specify a constant ERF framing length.

This can be useful for situations where

a) the input uses ERF (or some derivative thereof)
b) the link type and ERF record type are constant for the

duration of the capture

c) performance is critical

This option allows users to simply tell libtrace what the ERF
framing length on every packet is going to be, so libtrace
doesn't have to repeatedly derive the framing length for each
packet it processes. At high packet rates, the time taken to
do this calculation can really add up and it makes no sense
to risk dropping packets because you're busy calculating a value
that is always a single constant value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rf6f3ae5 r509ee47  
    13661366        /** Speed up trace file replays (via trace_event()) by this factor */
    13671367        TRACE_OPTION_REPLAY_SPEEDUP,
     1368
     1369        /** Always assume ERF framing length is the given value, rather than
     1370         *  trying to calculate it from the packet type. */
     1371        TRACE_OPTION_CONSTANT_ERF_FRAMING,
    13681372} trace_option_t;
    13691373
Note: See TracChangeset for help on using the changeset viewer.