|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef PLUGINS_IOAM_PLUGIN_IOAM_UDP_PING_UDP_PING_UTIL_H_
17 #define PLUGINS_IOAM_PLUGIN_IOAM_UDP_PING_UDP_PING_UTIL_H_
20 ip6_address_t
src, ip6_address_t
dst,
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,
54 ioam_trace_option_t *
trace;
56 src =
ip->src_address;
58 ip->src_address =
ip->dst_address;
59 ip->dst_address =
src;
61 trace = (ioam_trace_option_t *)
static vlib_cli_command_t trace
(constructor) VLIB_CLI_COMMAND (trace)
vl_api_ip_port_and_mask_t dst_port
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.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
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.
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)
static ip6_hop_by_hop_option_t * ip6_hbh_get_option(ip6_hop_by_hop_header_t *hbh0, u8 option_to_search)
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)
vl_api_ip_port_and_mask_t src_port
void udp_ping_free_flow_data(ip46_udp_ping_flow *flow)
void udp_ping_create_rewrite(ip46_udp_ping_flow *flow, u16 ctx)
void udp_ping_send_ip6_pak(vlib_main_t *vm, ip46_udp_ping_flow *flow)
Create and send ipv6 udp-ping probe packet.
#define HBH_OPTION_TYPE_IOAM_TRACE_DATA_LIST
static void ip6_hbh_ioam_trace_reset_bit(ioam_trace_option_t *trace, u8 trace_bit)