Changeset 4a207b8 for lib/format_erf.c


Ignore:
Timestamp:
03/23/07 16:41:03 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
dbdc23f
Parents:
83f2cbf
Message:

Endace POS traces are in fact PPP traces. Deal with this correctly, even when
converting between trace formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    rd5a27e8 r4a207b8  
    512512        dag_record_t *erfptr = 0;
    513513        erfptr = (dag_record_t *)packet->header;
    514         return erf_type_to_libtrace(erfptr->type);
     514        if (erfptr->type != TYPE_LEGACY)
     515                return erf_type_to_libtrace(erfptr->type);
     516        else {
     517                /* Sigh, lets start wildly guessing */
     518                if (((char*)packet->payload)[4]==0x45)
     519                        return TRACE_TYPE_PPP;
     520                return ~0;
     521        }
    515522}
    516523
Note: See TracChangeset for help on using the changeset viewer.