Changeset cab58c5 for lib/format_duck.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/format_duck.c

    r33d83d4 rcab58c5  
    167167        packet->payload = packet->buffer;
    168168       
    169         if (INPUT->dag_version == RT_DUCK_2_4) {
     169        if (INPUT->dag_version == TRACE_RT_DUCK_2_4) {
    170170                duck_size = sizeof(duck2_4_t);
    171                 packet->type = RT_DUCK_2_4;
    172         } else if (INPUT->dag_version == RT_DUCK_2_5) {
     171                packet->type = TRACE_RT_DUCK_2_4;
     172        } else if (INPUT->dag_version == TRACE_RT_DUCK_2_5) {
    173173                duck_size = sizeof(duck2_5_t);
    174                 packet->type = RT_DUCK_2_5;
     174                packet->type = TRACE_RT_DUCK_2_5;
    175175        } else {
    176176                trace_set_err(libtrace, TRACE_ERR_BAD_PACKET,
     
    202202
    203203        int numbytes = 0;
    204         if (packet->type != RT_DUCK_2_4 && packet->type != RT_DUCK_2_5) {
     204        if (packet->type != TRACE_RT_DUCK_2_4
     205                        && packet->type != TRACE_RT_DUCK_2_5) {
    205206                trace_set_err_out(libtrace, TRACE_ERR_BAD_PACKET,
    206207                                "Only DUCK packets may be written to a DUCK file");
     
    232233static int duck_get_capture_length(const libtrace_packet_t *packet) {
    233234        switch(packet->type) {
    234                 case RT_DUCK_2_4:
     235                case TRACE_RT_DUCK_2_4:
    235236                        return sizeof(duck2_4_t);
    236                 case RT_DUCK_2_5:
     237                case TRACE_RT_DUCK_2_5:
    237238                        return sizeof(duck2_5_t);
    238239        }
Note: See TracChangeset for help on using the changeset viewer.