16 #ifndef PLUGINS_IOAM_PLUGIN_IOAM_UDP_PING_UDP_PING_UTIL_H_ 17 #define PLUGINS_IOAM_PLUGIN_IOAM_UDP_PING_UDP_PING_UTIL_H_ 21 u16 src_port,
u16 dst_port,
22 u8 msg_type,
u16 ctx);
26 u16 start_src_port,
u16 end_src_port,
27 u16 start_dst_port,
u16 end_dst_port,
32 u16 start_src_port,
u16 end_src_port,
33 u16 start_dst_port,
u16 end_dst_port,
34 u16 interval,
u8 fault_det,
54 ioam_trace_option_t *
trace;
61 trace = (ioam_trace_option_t *)
int udp_ping_create_ip6_pak(u8 *buf, ip6_address_t src, ip6_address_t dst, u16 src_port, u16 dst_port, u8 msg_type, u16 ctx)
Frame IPv6 udp-ping probe packet.
static vlib_cli_command_t trace
(constructor) VLIB_CLI_COMMAND (trace)
int udp_ping_compare_flow(ip46_address_t src, ip46_address_t dst, u16 start_src_port, u16 end_src_port, u16 start_dst_port, u16 end_dst_port, ip46_udp_ping_flow *flow)
void udp_ping_create_rewrite(ip46_udp_ping_flow *flow, u16 ctx)
void udp_ping_free_flow_data(ip46_udp_ping_flow *flow)
void udp_ping_populate_flow(ip46_address_t src, ip46_address_t dst, u16 start_src_port, u16 end_src_port, u16 start_dst_port, u16 end_dst_port, u16 interval, u8 fault_det, ip46_udp_ping_flow *flow)
void udp_ping_send_ip6_pak(vlib_main_t *vm, ip46_udp_ping_flow *flow)
Create and send ipv6 udp-ping probe packet.
static void udp_ping_create_reply_from_probe_ip6(ip6_header_t *ip, ip6_hop_by_hop_header_t *hbh, udp_ping_t *udp)
Create and send ipv6 udp-ping response packet.
#define HBH_OPTION_TYPE_IOAM_TRACE_DATA_LIST
static ip6_hop_by_hop_option_t * ip6_hbh_get_option(ip6_hop_by_hop_header_t *hbh0, u8 option_to_search)
static void ip6_hbh_ioam_trace_reset_bit(ioam_trace_option_t *trace, u8 trace_bit)