Changeset cab58c5 for lib/linktypes.c


Ignore:
Timestamp:
11/14/06 13:21:39 (15 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:
35e0869
Parents:
33d83d4
Message:

Move RT_* to TRACE_RT_* and put it in libtrace.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/linktypes.c

    r33d83d4 rcab58c5  
    7575}
    7676
    77 enum rt_field_t pcap_dlt_to_rt(libtrace_dlt_t dlt)
     77libtrace_rt_types_t pcap_dlt_to_rt(libtrace_dlt_t dlt)
    7878{
    7979        /* For pcap the rt type is just the dlt + a fixed value */
    80         return dlt + RT_DATA_PCAP;
    81 }
    82 
    83 libtrace_dlt_t rt_to_pcap_dlt(enum rt_field_t rt_type)
    84 {
    85         assert(rt_type >= RT_DATA_PCAP);
    86         return rt_type - RT_DATA_PCAP;
     80        return dlt + TRACE_RT_DATA_DLT;
     81}
     82
     83libtrace_dlt_t rt_to_pcap_dlt(libtrace_rt_types_t rt_type)
     84{
     85        assert(rt_type >= TRACE_RT_DATA_DLT);
     86        return rt_type - TRACE_RT_DATA_DLT;
    8787}
    8888
Note: See TracChangeset for help on using the changeset viewer.