FD.io VPP  v16.06
Vector Packet Processing
lisp_gpe.h File Reference
+ Include dependency graph for lisp_gpe.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lisp_gpe_tunnel_key_t
 
struct  lisp_gpe_tunnel_t
 
struct  ip6_src_fib
 
struct  lisp_gpe_main
 
struct  vnet_lisp_gpe_add_del_iface_args_t
 
struct  vnet_lisp_gpe_enable_disable_args_t
 
struct  vnet_lisp_gpe_add_del_fwd_entry_args_t
 

Macros

#define foreach_lisp_gpe_ip_input_next
 
#define lisp_gpe_error(n, s)   LISP_GPE_ERROR_##n,
 
#define foreach_lgpe_ip4_lookup_next
 
#define foreach_lgpe_ip6_lookup_next
 

Typedefs

typedef ip4_fib_t ip4_src_fib_t
 
typedef struct ip6_src_fib ip6_src_fib_t
 
typedef struct lisp_gpe_main lisp_gpe_main_t
 
typedef enum lgpe_ip4_lookup_next lgpe_ip4_lookup_next_t
 
typedef enum lgpe_ip6_lookup_next lgpe_ip6_lookup_next_t
 

Enumerations

enum  lisp_gpe_input_next_t { LISP_GPE_INPUT_N_NEXT }
 
enum  lisp_gpe_error_t { LISP_GPE_N_ERROR }
 
enum  negative_fwd_actions_e { NO_ACTION, FORWARD_NATIVE, SEND_MAP_REQUEST, DROP }
 
enum  lgpe_ip4_lookup_next { LGPE_IP4_LOOKUP_N_NEXT }
 
enum  lgpe_ip6_lookup_next { LGPE_IP6_LOOKUP_N_NEXT }
 

Functions

typedef CLIB_PACKED (struct{ip4_header_t ip4;udp_header_t udp;lisp_gpe_header_t lisp;}) ip4_udp_lisp_gpe_header_t
 
typedef CLIB_PACKED (struct{ip6_header_t ip6;udp_header_t udp;lisp_gpe_header_t lisp;}) ip6_udp_lisp_gpe_header_t
 
u8format_lisp_gpe_header_with_length (u8 *s, va_list *args)
 
u8 vnet_lisp_gpe_enable_disable_status (void)
 
void vnet_lisp_gpe_add_del_iface (vnet_lisp_gpe_add_del_iface_args_t *a, u32 *hw_if_indexp)
 
clib_error_tvnet_lisp_gpe_enable_disable (vnet_lisp_gpe_enable_disable_args_t *a)
 
int vnet_lisp_gpe_add_del_fwd_entry (vnet_lisp_gpe_add_del_fwd_entry_args_t *a, u32 *hw_if_indexp)
 
int ip_sd_fib_add_del_route (lisp_gpe_main_t *lgm, ip_prefix_t *dst_prefix, ip_prefix_t *src_prefix, u32 table_id, ip_adjacency_t *add_adj, u8 is_add)
 
u32 ip_sd_fib_get_route (lisp_gpe_main_t *lgm, ip_prefix_t *dst_prefix, ip_prefix_t *src_prefix, u32 table_id)
 
u8format_vnet_lisp_gpe_status (u8 *s, va_list *args)
 

Variables

lisp_gpe_main_t lisp_gpe_main
 
vlib_node_registration_t lgpe_ip4_lookup_node
 (constructor) VLIB_REGISTER_NODE (lgpe_ip4_lookup_node) More...
 
vlib_node_registration_t lgpe_ip6_lookup_node
 (constructor) VLIB_REGISTER_NODE (lgpe_ip6_lookup_node) More...
 
vlib_node_registration_t lisp_gpe_ip4_input_node
 (constructor) VLIB_REGISTER_NODE (lisp_gpe_ip4_input_node) More...
 
vlib_node_registration_t lisp_gpe_ip6_input_node
 (constructor) VLIB_REGISTER_NODE (lisp_gpe_ip6_input_node) More...
 

Macro Definition Documentation

#define foreach_lgpe_ip4_lookup_next
Value:
_(DROP, "error-drop") \
_(LISP_CP_LOOKUP, "lisp-cp-lookup")
Definition: lisp_gpe.h:200

Definition at line 244 of file lisp_gpe.h.

#define foreach_lgpe_ip6_lookup_next
Value:
_(DROP, "error-drop") \
_(LISP_CP_LOOKUP, "lisp-cp-lookup")
Definition: lisp_gpe.h:200

Definition at line 256 of file lisp_gpe.h.

#define foreach_lisp_gpe_ip_input_next
Value:
_(DROP, "error-drop") \
_(IP4_INPUT, "ip4-input") \
_(IP6_INPUT, "ip6-input") \
_(ETHERNET_INPUT, "ethernet-input")
Definition: lisp_gpe.h:200

Definition at line 84 of file lisp_gpe.h.

#define lisp_gpe_error (   n,
 
)    LISP_GPE_ERROR_##n,

Definition at line 98 of file lisp_gpe.h.

Typedef Documentation

Definition at line 107 of file lisp_gpe.h.

typedef struct ip6_src_fib ip6_src_fib_t

Enumeration Type Documentation

Enumerator
LGPE_IP4_LOOKUP_N_NEXT 

Definition at line 248 of file lisp_gpe.h.

Enumerator
LGPE_IP6_LOOKUP_N_NEXT 

Definition at line 260 of file lisp_gpe.h.

Enumerator
LISP_GPE_N_ERROR 

Definition at line 97 of file lisp_gpe.h.

Enumerator
LISP_GPE_INPUT_N_NEXT 

Definition at line 90 of file lisp_gpe.h.

Enumerator
NO_ACTION 
FORWARD_NATIVE 
SEND_MAP_REQUEST 
DROP 

Definition at line 195 of file lisp_gpe.h.

Function Documentation

typedef CLIB_PACKED ( struct{ip4_header_t ip4;udp_header_t udp;lisp_gpe_header_t lisp;}  )
typedef CLIB_PACKED ( struct{ip6_header_t ip6;udp_header_t udp;lisp_gpe_header_t lisp;}  )
u8* format_lisp_gpe_header_with_length ( u8 s,
va_list *  args 
)

Definition at line 326 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vnet_lisp_gpe_status ( u8 s,
va_list *  args 
)

Definition at line 581 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip_sd_fib_add_del_route ( lisp_gpe_main_t lgm,
ip_prefix_t *  dst_prefix,
ip_prefix_t *  src_prefix,
u32  table_id,
ip_adjacency_t add_adj,
u8  is_add 
)

Definition at line 666 of file ip_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 ip_sd_fib_get_route ( lisp_gpe_main_t lgm,
ip_prefix_t *  dst_prefix,
ip_prefix_t *  src_prefix,
u32  table_id 
)

Definition at line 679 of file ip_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_lisp_gpe_add_del_fwd_entry ( vnet_lisp_gpe_add_del_fwd_entry_args_t a,
u32 hw_if_indexp 
)

Definition at line 214 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_lisp_gpe_add_del_iface ( vnet_lisp_gpe_add_del_iface_args_t a,
u32 hw_if_indexp 
)

Definition at line 484 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vnet_lisp_gpe_enable_disable ( vnet_lisp_gpe_enable_disable_args_t a)

Definition at line 444 of file lisp_gpe.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 vnet_lisp_gpe_enable_disable_status ( void  )

Definition at line 436 of file lisp_gpe.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t lgpe_ip4_lookup_node

(constructor) VLIB_REGISTER_NODE (lgpe_ip4_lookup_node)

Definition at line 912 of file ip_forward.c.

vlib_node_registration_t lgpe_ip6_lookup_node

(constructor) VLIB_REGISTER_NODE (lgpe_ip6_lookup_node)

Definition at line 1129 of file ip_forward.c.

vlib_node_registration_t lisp_gpe_ip4_input_node

(constructor) VLIB_REGISTER_NODE (lisp_gpe_ip4_input_node)

Definition at line 359 of file decap.c.

vlib_node_registration_t lisp_gpe_ip6_input_node

(constructor) VLIB_REGISTER_NODE (lisp_gpe_ip6_input_node)

Definition at line 380 of file decap.c.

Definition at line 164 of file lisp_gpe.h.