Ignore:
Timestamp:
02/27/06 14:19:41 (16 years ago)
Author:
Shane Alcock <salcock@…>
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:
ab4cb04
Parents:
9de8150
Message:

Changed rt protocol to not require subheaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    r0ea3526 rafd0b73  
    155155        }
    156156        buffer = packet->buffer;
     157
     158        switch(libtrace->format->type) {
     159                case TRACE_FORMAT_LEGACY_ATM:
     160                        packet->type = RT_DATA_LEGACY_ATM;
     161                        break;
     162                case TRACE_FORMAT_LEGACY_POS:
     163                        packet->type = RT_DATA_LEGACY_POS;
     164                        break;
     165                case TRACE_FORMAT_LEGACY_ETH:
     166                        packet->type = RT_DATA_LEGACY_ETH;
     167                        break;
     168        }
    157169       
    158170        if ((numbytes=LIBTRACE_READ(INPUT.file,
Note: See TracChangeset for help on using the changeset viewer.