18 #ifndef include_vnet_trace_util_h 19 #define include_vnet_trace_util_h 22 #define debug_ioam debug_ioam_fn 96 #define BIT_TTL_NODEID (1<<0) 97 #define BIT_ING_INTERFACE (1<<1) 98 #define BIT_EGR_INTERFACE (1<<2) 99 #define BIT_TIMESTAMP (1<<3) 100 #define BIT_APPDATA (1<<4) 101 #define TRACE_TYPE_MASK 0x1F 119 #define TRACE_TYPE_IF_TS_APP 0x1f 141 #define TRACE_TYPE_IF 0x03 161 #define TRACE_TYPE_TS 0x09 182 #define TRACE_TYPE_APP 0x11 203 #define TRACE_TYPE_TS_APP 0x19 216 u8 data_list_elts_left;
218 }) ioam_trace_option_t;
225 u8 trace_data_size = 0;
238 return trace_data_size;
#define TRACE_TYPE_IF_TS_APP
int trace_util_init(void)
typedef CLIB_PACKED(struct{ip6_hop_by_hop_option_t hdr;u8 ioam_trace_type;u8 data_list_elts_left;u32 elts[0];}) ioam_trace_option_t
int ioam_trace_get_sizeof_handler(u32 *result)
static u8 fetch_trace_data_size(u8 trace_type)
#define TRACE_TYPE_TS_APP
static trace_profile * trace_profile_find(void)
void clear_trace_profiles(void)
int trace_profile_create(trace_profile *profile, u8 trace_type, u8 num_elts, u32 trace_tsp, u32 node_id, u32 app_data)
struct trace_profile_ trace_profile
Usage: