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/format_linux_common.c

    r2193905 r509ee47  
    167167                case TRACE_OPTION_REPLAY_SPEEDUP:
    168168                        break;
     169                case TRACE_OPTION_CONSTANT_ERF_FRAMING:
     170                        break;
    169171                /* Avoid default: so that future options will cause a warning
    170172                 * here to remind us to implement it, or flag it as
Note: See TracChangeset for help on using the changeset viewer.