Changeset b51edf5 for lib/format_rt.c


Ignore:
Timestamp:
03/07/06 10:50:19 (15 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:
8f80e87
Parents:
e4e1635
Message:

Added RT_KEYCHANGE to rt protocol
Fixed incorrect calculation in trace_get_seconds
rt_read_packet now returns sizeof(rt_header_t) + packet length
trace_get_capture_length no longer asserts for packet->size = 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    r7ac9705 rb51edf5  
    448448                                /* FIXME: Do something useful here as well */
    449449                                break;
     450                        case RT_KEYCHANGE:
     451                                break;
    450452                        default:
    451453                                printf("Bad rt type for client receipt: %d\n",
     
    453455                }
    454456        }
    455         return trace_get_capture_length(packet)+trace_get_framing_length(packet);
     457        /* Return the number of bytes read from the stream */
     458        return sizeof(rt_header_t) + packet->size;
    456459}
    457460
     
    480483                case RT_OPTION:
    481484                        return sizeof(rt_option_t);
     485                case RT_KEYCHANGE:
     486                        return sizeof(rt_keychange_t);
    482487        }
    483488        printf("Unknown type: %d\n", packet->type);
Note: See TracChangeset for help on using the changeset viewer.