FD.io VPP  v17.07.01-10-g3be13f0
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  icmp_echo_trace_t
 

Macros

#define PING_DEFAULT_DATA_LEN   60
 
#define PING_DEFAULT_INTERVAL   1.0
 
#define PING_MAXIMUM_DATA_SIZE   (VLIB_BUFFER_DATA_SIZE - sizeof(ip6_header_t) - sizeof(icmp46_header_t) - offsetof(icmp46_echo_request_t, data))
 

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, SEND_PING_NO_TABLE,
  SEND_PING_NO_SRC_ADDRESS
}
 
enum  icmp6_echo_reply_next_t { ICMP6_ECHO_REPLY_NEXT_DROP, ICMP6_ECHO_REPLY_NEXT_PUNT, ICMP6_ECHO_REPLY_N_NEXT }
 
enum  icmp4_echo_reply_next_t { ICMP4_ECHO_REPLY_NEXT_DROP, ICMP4_ECHO_REPLY_NEXT_PUNT, ICMP4_ECHO_REPLY_N_NEXT }
 

Functions

typedef CLIB_PACKED (struct{u16 id;u16 seq;f64 time_sent;u8 data[0];}) 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 61 of file ping.h.

#define PING_DEFAULT_INTERVAL   1.0

Definition at line 62 of file ping.h.

#define PING_MAXIMUM_DATA_SIZE   (VLIB_BUFFER_DATA_SIZE - sizeof(ip6_header_t) - sizeof(icmp46_header_t) - offsetof(icmp46_echo_request_t, data))

Definition at line 64 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_DROP 
ICMP4_ECHO_REPLY_NEXT_PUNT 
ICMP4_ECHO_REPLY_N_NEXT 

Definition at line 108 of file ping.h.

Enumerator
ICMP6_ECHO_REPLY_NEXT_DROP 
ICMP6_ECHO_REPLY_NEXT_PUNT 
ICMP6_ECHO_REPLY_N_NEXT 

Definition at line 101 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 
SEND_PING_NO_TABLE 
SEND_PING_NO_SRC_ADDRESS 

Definition at line 29 of file ping.h.

Function Documentation

typedef CLIB_PACKED ( struct{u16 id;u16 seq;f64 time_sent;u8 data[0];}  )
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 59 of file ping.h.