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_pcapng.c

    r2193905 r509ee47  
    263263                case TRACE_OPTION_HASHER:
    264264                case TRACE_OPTION_REPLAY_SPEEDUP:
     265                case TRACE_OPTION_CONSTANT_ERF_FRAMING:
    265266                        break;
    266267        }
Note: See TracChangeset for help on using the changeset viewer.