FD.io VPP  v21.01.1
Vector Packet Processing
udp_ping_util.c File Reference
+ Include dependency graph for udp_ping_util.c:

Go to the source code of this file.

Macros

#define UDP_PING_REWRITE_LEN   1000
 

Functions

u16 udp_ping_fill_udp_data (udp_ping_t *udp_ping, u16 src_port, u16 dst_port, u8 msg_type, u16 ctx)
 
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. More...
 
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_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_create_rewrite (ip46_udp_ping_flow *flow, u16 ctx)
 
void udp_ping_free_flow_data (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. More...
 

Macro Definition Documentation

◆ UDP_PING_REWRITE_LEN

#define UDP_PING_REWRITE_LEN   1000

Definition at line 24 of file udp_ping_util.c.

Function Documentation

◆ udp_ping_compare_flow()

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 
)

Definition at line 139 of file udp_ping_util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ udp_ping_create_ip6_pak()

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.

Creates IPv6 UDP-Ping probe packet along with iOAM headers.

Definition at line 61 of file udp_ping_util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ udp_ping_create_rewrite()

void udp_ping_create_rewrite ( ip46_udp_ping_flow flow,
u16  ctx 
)

Definition at line 175 of file udp_ping_util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ udp_ping_fill_udp_data()

u16 udp_ping_fill_udp_data ( udp_ping_t udp_ping,
u16  src_port,
u16  dst_port,
u8  msg_type,
u16  ctx 
)

Definition at line 27 of file udp_ping_util.c.

+ Here is the caller graph for this function:

◆ udp_ping_free_flow_data()

void udp_ping_free_flow_data ( ip46_udp_ping_flow flow)

Definition at line 218 of file udp_ping_util.c.

+ Here is the caller graph for this function:

◆ udp_ping_populate_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 
)

Definition at line 158 of file udp_ping_util.c.

+ Here is the caller graph for this function:

◆ udp_ping_send_ip6_pak()

void udp_ping_send_ip6_pak ( vlib_main_t vm,
ip46_udp_ping_flow flow 
)

Create and send ipv6 udp-ping probe packet.

Definition at line 240 of file udp_ping_util.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: