Changeset b51edf5 for lib/rt_protocol.h


Ignore:
Timestamp:
03/07/06 10:50:19 (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:
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/rt_protocol.h

    r7ac9705 rb51edf5  
    1414#define RT_DATA_PCAP 2000
    1515
     16/* Procedure for adding new RT control types
     17 * -------------------------------------------
     18 *
     19 * Add type to the enum list
     20 * Add a struct below (even if it is empty)
     21 * Update rt_get_capture_length
     22 * If type is intended to be sent TO clients, update rt_read_packet
     23 *      Otherwise, update server implementations e.g. WDCAP
     24 *
     25 * Procedure for adding new RT data types
     26 * ----------------------------------------
     27 *
     28 * If you are adding a new format:
     29 *      RT_DATA_(new format) must be equal to RT_DATA_SIMPLE +
     30 *              TRACE_FORMAT_(new_format)
     31 *      Add a new dummy trace type to the rt_format_t structure
     32 *      Set the dummy trace to NULL in rt_init_input
     33 *      Update rt_set_format
     34 *
     35 * If you are adding a new PCAP DLT type:
     36 *      RT_DATA_PCAP_(new DLT) must be equal to RT_DATA_PCAP + (DLT value)
     37 *     
     38 */
     39
    1640/* Type field definitions */
    1741enum rt_field_t {
     
    2751 RT_PAUSE_ACK   =10,    /* Server is paused message */
    2852 RT_OPTION      =11,    /* Option request */
     53 RT_KEYCHANGE   =12,    /* Anonymisation key has changed */
    2954 
    3055 RT_DATA_ERF            =RT_DATA_SIMPLE + TRACE_FORMAT_ERF,
     
    4469 RT_DATA_PCAP_PFLOG             =RT_DATA_PCAP + DLT_PFLOG,
    4570#endif
    46 
     71 RT_LAST = 3000
    4772};
    4873
     
    116141} rt_option_t;
    117142
    118 
    119 
     143typedef struct rt_keychange {
     144       
     145} rt_keychange_t;
    120146
    121147#endif
Note: See TracChangeset for help on using the changeset viewer.