FD.io VPP  v16.12-rc0-308-g931be3a
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
 
struct  icmp4_input_trace_t
 

Macros

#define PING_DEFAULT_DATA_LEN   60
 
#define PING_DEFAULT_INTERVAL   1.0
 
#define PING_MAXIMUM_DATA_SIZE   2000
 

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 { SEND_PING_OK = 0, SEND_PING_ALLOC_FAIL, SEND_PING_NO_INTERFACE }
 
enum  icmp6_echo_reply_next_t { ICMP6_ECHO_REPLY_NEXT_NORMAL, ICMP6_ECHO_REPLY_N_NEXT }
 
enum  icmp4_echo_reply_next_t { ICMP4_ECHO_REPLY_NEXT_NORMAL, ICMP4_ECHO_REPLY_N_NEXT }
 

Functions

typedef CLIB_PACKED (struct{u16 id;u16 seq;f64 time_sent;u8 data[PING_MAXIMUM_DATA_SIZE];}) icmp46_echo_request_t
 
typedef CLIB_PACKED (struct{ip6_header_t ip6;icmp46_header_t icmp;icmp46_echo_request_t icmp_echo;}) icmp6_echo_request_header_t
 
typedef CLIB_PACKED (struct{ip4_header_t ip4;icmp46_header_t icmp;icmp46_echo_request_t icmp_echo;}) icmp4_echo_request_header_t
 

Variables

ping_main_t ping_main
 

Macro Definition Documentation

#define PING_DEFAULT_DATA_LEN   60

Definition at line 54 of file ping.h.

#define PING_DEFAULT_INTERVAL   1.0

Definition at line 55 of file ping.h.

#define PING_MAXIMUM_DATA_SIZE   2000

Definition at line 57 of file ping.h.

Typedef Documentation

typedef struct ping_main_t ping_main_t
typedef struct ping_run_t ping_run_t

Enumeration Type Documentation

Enumerator
ICMP4_ECHO_REPLY_NEXT_NORMAL 
ICMP4_ECHO_REPLY_N_NEXT 

Definition at line 92 of file ping.h.

Enumerator
ICMP6_ECHO_REPLY_NEXT_NORMAL 
ICMP6_ECHO_REPLY_N_NEXT 

Definition at line 87 of file ping.h.

Enumerator
PING_RESPONSE_IP6 
PING_RESPONSE_IP4 

Definition at line 23 of file ping.h.

Enumerator
SEND_PING_OK 
SEND_PING_ALLOC_FAIL 
SEND_PING_NO_INTERFACE 

Definition at line 28 of file ping.h.

Function Documentation

typedef CLIB_PACKED ( struct{u16 id;u16 seq;f64 time_sent;u8 data[PING_MAXIMUM_DATA_SIZE];}  )
typedef CLIB_PACKED ( struct{ip6_header_t ip6;icmp46_header_t icmp;icmp46_echo_request_t icmp_echo;}  )
typedef CLIB_PACKED ( struct{ip4_header_t ip4;icmp46_header_t icmp;icmp46_echo_request_t icmp_echo;}  )

Variable Documentation

ping_main_t ping_main

Definition at line 52 of file ping.h.