FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
gre.h File Reference
+ Include dependency graph for gre.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gre_protocol_info_t
 
struct  gre_tunnel_t
 
struct  gre_main_t
 
struct  vnet_gre_add_del_tunnel_args_t
 

Macros

#define gre_error(n, s)   GRE_ERROR_##n,
 
#define GRE_OUTPUT_NEXT_LOOKUP   1
 

Enumerations

enum  gre_error_t { gre_error, gre_error }
 

Functions

typedef CLIB_PACKED (struct{ip4_header_t ip4;gre_header_t gre;}) ip4_and_gre_header_t
 IPv4 and GRE header. More...
 
static gre_protocol_info_tgre_get_protocol_info (gre_main_t *em, gre_protocol_t protocol)
 
void gre_register_input_type (vlib_main_t *vm, gre_protocol_t protocol, u32 node_index)
 
clib_error_tgre_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
void gre_tunnel_stack (adj_index_t ai)
 gre_tunnel_stack More...
 
void gre_update_adj (vnet_main_t *vnm, u32 sw_if_index, adj_index_t ai)
 
void gre_register_input_protocol (vlib_main_t *vm, gre_protocol_t protocol, u32 node_index)
 
int vnet_gre_add_del_tunnel (vnet_gre_add_del_tunnel_args_t *a, u32 *sw_if_indexp)
 

Variables

vnet_hw_interface_class_t gre_hw_interface_class
 
gre_main_t gre_main
 
format_function_t format_gre_protocol
 
format_function_t format_gre_header
 
format_function_t format_gre_header_with_length
 
vlib_node_registration_t gre_input_node
 (constructor) VLIB_REGISTER_NODE (gre_input_node) More...
 
vnet_device_class_t gre_device_class
 
vnet_device_class_t gre_l2_device_class
 
unformat_function_t unformat_gre_protocol_host_byte_order
 
unformat_function_t unformat_gre_protocol_net_byte_order
 
unformat_function_t unformat_gre_header
 
unformat_function_t unformat_pg_gre_header
 

Macro Definition Documentation

#define gre_error (   n,
 
)    GRE_ERROR_##n,

Definition at line 33 of file gre.h.

#define GRE_OUTPUT_NEXT_LOOKUP   1

Definition at line 177 of file gre.h.

Enumeration Type Documentation

Enumerator
gre_error 
gre_error 

Definition at line 32 of file gre.h.

Function Documentation

typedef CLIB_PACKED ( struct{ip4_header_t ip4;gre_header_t gre;}  )

IPv4 and GRE header.

static gre_protocol_info_t* gre_get_protocol_info ( gre_main_t em,
gre_protocol_t  protocol 
)
inlinestatic

Definition at line 131 of file gre.h.

+ Here is the caller graph for this function:

clib_error_t* gre_interface_admin_up_down ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)

Definition at line 432 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gre_register_input_protocol ( vlib_main_t vm,
gre_protocol_t  protocol,
u32  node_index 
)

Definition at line 462 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gre_register_input_type ( vlib_main_t vm,
gre_protocol_t  protocol,
u32  node_index 
)
void gre_tunnel_stack ( adj_index_t  ai)

gre_tunnel_stack

'stack' (resolve the recursion for) the tunnel's midchain adjacency

Definition at line 108 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gre_update_adj ( vnet_main_t vnm,
u32  sw_if_index,
adj_index_t  ai 
)

Definition at line 236 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_gre_add_del_tunnel ( vnet_gre_add_del_tunnel_args_t a,
u32 sw_if_indexp 
)

Definition at line 422 of file interface.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_gre_header

Definition at line 155 of file gre.h.

format_function_t format_gre_header_with_length

Definition at line 156 of file gre.h.

format_function_t format_gre_protocol

Definition at line 154 of file gre.h.

vnet_device_class_t gre_device_class
vnet_hw_interface_class_t gre_hw_interface_class
vlib_node_registration_t gre_input_node

(constructor) VLIB_REGISTER_NODE (gre_input_node)

Definition at line 436 of file node.c.

vnet_device_class_t gre_l2_device_class
gre_main_t gre_main

Definition at line 137 of file gre.h.

unformat_function_t unformat_gre_header

Definition at line 168 of file gre.h.

unformat_function_t unformat_gre_protocol_host_byte_order

Definition at line 164 of file gre.h.

unformat_function_t unformat_gre_protocol_net_byte_order

Definition at line 165 of file gre.h.

unformat_function_t unformat_pg_gre_header

Definition at line 169 of file gre.h.