FD.io VPP  v16.09
Vector Packet Processing
gre.c File Reference
+ Include dependency graph for gre.c:

Go to the source code of this file.

Data Structures

struct  gre_tx_trace_t
 

Functions

typedef CLIB_PACKED (struct{ip4_header_t ip4;gre_header_t gre;})
 
u8format_gre_tx_trace (u8 *s, va_list *args)
 
u8format_gre_protocol (u8 *s, va_list *args)
 
u8format_gre_header_with_length (u8 *s, va_list *args)
 
u8format_gre_header (u8 *s, va_list *args)
 
uword unformat_gre_protocol_host_byte_order (unformat_input_t *input, va_list *args)
 
uword unformat_gre_protocol_net_byte_order (unformat_input_t *input, va_list *args)
 
uword unformat_gre_header (unformat_input_t *input, va_list *args)
 
static uword gre_set_rewrite (vnet_main_t *vnm, u32 sw_if_index, u32 l3_type, void *dst_address, void *rewrite, uword max_rewrite_bytes)
 
static uword gre_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tgre_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
static u8format_gre_tunnel_name (u8 *s, va_list *args)
 
static u8format_gre_device (u8 *s, va_list *args)
 
 VNET_DEVICE_CLASS (gre_device_class)
 
 VLIB_DEVICE_TX_FUNCTION_MULTIARCH (gre_device_class, gre_interface_tx)
 
static void add_protocol (gre_main_t *gm, gre_protocol_t protocol, char *protocol_name)
 
static clib_error_tgre_init (vlib_main_t *vm)
 
gre_main_tgre_get_main (vlib_main_t *vm)
 

Variables

gre_main_t gre_main
 
 ip4_and_gre_union_t
 

Function Documentation

static void add_protocol ( gre_main_t gm,
gre_protocol_t  protocol,
char *  protocol_name 
)
static

Definition at line 468 of file gre.c.

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

Definition at line 23 of file gre.c.

static u8* format_gre_device ( u8 s,
va_list *  args 
)
static

Definition at line 436 of file gre.c.

+ Here is the call graph for this function:

u8* format_gre_header ( u8 s,
va_list *  args 
)

Definition at line 106 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_gre_header_with_length ( u8 s,
va_list *  args 
)

Definition at line 76 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_gre_protocol ( u8 s,
va_list *  args 
)

Definition at line 62 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_gre_tunnel_name ( u8 s,
va_list *  args 
)
static

Definition at line 430 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_gre_tx_trace ( u8 s,
va_list *  args 
)

Definition at line 49 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

gre_main_t* gre_get_main ( vlib_main_t vm)

Definition at line 521 of file gre.c.

+ Here is the call graph for this function:

static clib_error_t* gre_init ( vlib_main_t vm)
static

Definition at line 486 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 420 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword gre_interface_tx ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 211 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword gre_set_rewrite ( vnet_main_t vnm,
u32  sw_if_index,
u32  l3_type,
void *  dst_address,
void *  rewrite,
uword  max_rewrite_bytes 
)
static

Definition at line 169 of file gre.c.

+ Here is the caller graph for this function:

uword unformat_gre_header ( unformat_input_t input,
va_list *  args 
)

Definition at line 145 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_gre_protocol_host_byte_order ( unformat_input_t input,
va_list *  args 
)

Definition at line 114 of file gre.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_gre_protocol_net_byte_order ( unformat_input_t input,
va_list *  args 
)

Definition at line 134 of file gre.c.

+ Here is the call graph for this function:

VLIB_DEVICE_TX_FUNCTION_MULTIARCH ( gre_device_class  ,
gre_interface_tx   
)

Definition at line 457 of file gre.c.

+ Here is the call graph for this function:

VNET_DEVICE_CLASS ( gre_device_class  )

+ Here is the caller graph for this function:

Variable Documentation

gre_main_t gre_main

Definition at line 21 of file gre.c.

ip4_and_gre_union_t

Definition at line 33 of file gre.c.