Go to the source code of this file.
|
u8 * | format_gre_rx_trace (u8 *s, va_list *args) |
|
static void | gre_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b, u32 tun_sw_if_index, const ip6_header_t *ip6, const ip4_header_t *ip4, int is_ipv6) |
|
static void | gre_tunnel_get (const gre_main_t *gm, vlib_node_runtime_t *node, vlib_buffer_t *b, u16 *next, const gre_tunnel_key_t *key, gre_tunnel_key_t *cached_key, u32 *tun_sw_if_index, u32 *cached_tun_sw_if_index, int is_ipv6) |
|
static uword | gre_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, const int is_ipv6) |
|
VLIB_NODE_FN() | gre4_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame) |
|
VLIB_NODE_FN() | gre6_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame) |
|
void | gre_register_input_protocol (vlib_main_t *vm, gre_protocol_t protocol, u32 node_index, gre_tunnel_type_t tunnel_type) |
|
static void | gre_setup_node (vlib_main_t *vm, u32 node_index) |
|
static clib_error_t * | gre_input_init (vlib_main_t *vm) |
|
◆ foreach_gre_input_next
#define foreach_gre_input_next |
Value:_(PUNT, "error-punt") \
_(ETHERNET_INPUT, "ethernet-input") \
_(IP4_INPUT, "ip4-input") \
_(IP6_INPUT, "ip6-input") \
_(MPLS_INPUT, "mpls-input")
Definition at line 24 of file node.c.
◆ gre_error
#define gre_error |
( |
|
n, |
|
|
|
s |
|
) |
| s, |
◆ gre_input_next_t
Enumerator |
---|
GRE_INPUT_N_NEXT | |
Definition at line 32 of file node.c.
◆ format_gre_rx_trace()
u8 * format_gre_rx_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ gre4_input_node()
◆ gre6_input_node()
◆ gre_input()
◆ gre_input_init()
◆ gre_register_input_protocol()
◆ gre_setup_node()
◆ gre_trace()
◆ gre_tunnel_get()
◆ gre4_input_node
Initial value:= {
.name = "gre4-input",
.vector_size =
sizeof (
u32),
.next_nodes = {
#define _(s,n)
},
}
format_function_t format_gre_header_with_length
#define foreach_gre_input_next
static char * gre_error_strings[]
unformat_function_t unformat_gre_header
u8 * format_gre_rx_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (gre4_input_node)
Definition at line 454 of file node.c.
◆ gre6_input_node
Initial value:= {
.name = "gre6-input",
.vector_size =
sizeof (
u32),
.next_nodes = {
#define _(s,n)
},
}
format_function_t format_gre_header_with_length
#define foreach_gre_input_next
static char * gre_error_strings[]
unformat_function_t unformat_gre_header
u8 * format_gre_rx_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (gre6_input_node)
Definition at line 474 of file node.c.
◆ gre_error_strings
char* gre_error_strings[] |
|
static |
Initial value:= {
#define gre_error(n,s)
gre_error (PKTS_DECAP, "GRE input packets decapsulated")
gre_error (PKTS_ENCAP, "GRE output packets encapsulated")
gre_error (NO_SUCH_TUNNEL, "GRE input packets dropped due to missing tunnel")
}
vl_api_ip_proto_t protocol
Definition at line 447 of file node.c.