FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
ping.h File Reference
+ Include dependency graph for ping.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ping_run_t
 
struct  ping_main_t
 

Macros

#define foreach_ip46_ping_result
 
#define PING_DEFAULT_DATA_LEN   60
 
#define PING_DEFAULT_INTERVAL   1.0
 
#define PING_MAXIMUM_DATA_SIZE   32768
 
#define PING_CLI_UNKNOWN_NODE   (~0)
 

Typedefs

typedef struct ping_run_t ping_run_t
 
typedef struct ping_main_t ping_main_t
 

Enumerations

enum  ping_response_type_t { PING_RESPONSE_IP6 = 42, PING_RESPONSE_IP4 }
 
enum  send_ip46_ping_result_t { foreach_ip46_ping_result }
 
enum  icmp46_echo_reply_next_t { ICMP46_ECHO_REPLY_NEXT_DROP, ICMP46_ECHO_REPLY_NEXT_PUNT, ICMP46_ECHO_REPLY_N_NEXT }
 

Functions

typedef CLIB_PACKED (struct { u16 id;u16 seq;u64 time_sent;u8 data[0];}) icmp46_echo_request_t
 

Variables

ping_main_t ping_main
 

Macro Definition Documentation

◆ foreach_ip46_ping_result

#define foreach_ip46_ping_result
Value:
_ (OK, "OK") \
_ (ALLOC_FAIL, "packet allocation failed") \
_ (NO_INTERFACE, "no egress interface") \
_ (NO_TABLE, "no FIB table for lookup") \
_ (NO_SRC_ADDRESS, "no source address for egress interface") \
_ (NO_BUFFERS, "could not allocate a new buffer") \

Definition at line 29 of file ping.h.

◆ PING_CLI_UNKNOWN_NODE

#define PING_CLI_UNKNOWN_NODE   (~0)

Definition at line 70 of file ping.h.

◆ PING_DEFAULT_DATA_LEN

#define PING_DEFAULT_DATA_LEN   60

Definition at line 65 of file ping.h.

◆ PING_DEFAULT_INTERVAL

#define PING_DEFAULT_INTERVAL   1.0

Definition at line 66 of file ping.h.

◆ PING_MAXIMUM_DATA_SIZE

#define PING_MAXIMUM_DATA_SIZE   32768

Definition at line 68 of file ping.h.

Typedef Documentation

◆ ping_main_t

typedef struct ping_main_t ping_main_t

◆ ping_run_t

typedef struct ping_run_t ping_run_t

Enumeration Type Documentation

◆ icmp46_echo_reply_next_t

Enumerator
ICMP46_ECHO_REPLY_NEXT_DROP 
ICMP46_ECHO_REPLY_NEXT_PUNT 
ICMP46_ECHO_REPLY_N_NEXT 

Definition at line 84 of file ping.h.

◆ ping_response_type_t

Enumerator
PING_RESPONSE_IP6 
PING_RESPONSE_IP4 

Definition at line 23 of file ping.h.

◆ send_ip46_ping_result_t

Enumerator
foreach_ip46_ping_result 

Definition at line 37 of file ping.h.

Function Documentation

◆ CLIB_PACKED()

typedef CLIB_PACKED ( struct { u16 id;u16 seq;u64 time_sent;u8 data[0];}  )

Variable Documentation

◆ ping_main

ping_main_t ping_main

Definition at line 29 of file ping.c.