Go to the source code of this file.
|
static u8 * | format_decap_next (u8 *s, va_list *args) |
|
u8 * | format_vxlan_tunnel (u8 *s, va_list *args) |
|
static u8 * | format_vxlan_name (u8 *s, va_list *args) |
|
static uword | dummy_interface_tx (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static clib_error_t * | vxlan_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags) |
|
| VNET_DEVICE_CLASS (vxlan_device_class, static) |
|
static uword | dummy_set_rewrite (vnet_main_t *vnm, u32 sw_if_index, u32 l3_type, void *dst_address, void *rewrite, uword max_rewrite_bytes) |
|
static u8 * | format_vxlan_header_with_length (u8 *s, va_list *args) |
|
| VNET_HW_INTERFACE_CLASS (vxlan_hw_class) |
|
static int | vxlan4_rewrite (vxlan_tunnel_t *t) |
|
static int | vxlan6_rewrite (vxlan_tunnel_t *t) |
|
int | vnet_vxlan_add_del_tunnel (vnet_vxlan_add_del_tunnel_args_t *a, u32 *sw_if_indexp) |
|
static u32 | fib4_index_from_fib_id (u32 fib_id) |
|
static u32 | fib6_index_from_fib_id (u32 fib_id) |
|
static uword | unformat_decap_next (unformat_input_t *input, va_list *args) |
|
static clib_error_t * | vxlan_add_del_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | show_vxlan_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | vxlan_init (vlib_main_t *vm) |
|
#define foreach_copy_field |
Value:_(vni) \
_(encap_fib_index) \
_(decap_next_index)
Definition at line 112 of file vxlan.c.
#define foreach_copy_ipv4 |
Value:{ \
_(src.ip4.as_u32) \
_(dst.ip4.as_u32) \
}
Definition at line 117 of file vxlan.c.
#define foreach_copy_ipv6 |
Value:{ \
_(src.ip6.as_u64[0]) \
_(src.ip6.as_u64[1]) \
_(dst.ip6.as_u64[0]) \
_(dst.ip6.as_u64[1]) \
}
Definition at line 122 of file vxlan.c.
static u32 fib4_index_from_fib_id |
( |
u32 |
fib_id | ) |
|
|
static |
static u32 fib6_index_from_fib_id |
( |
u32 |
fib_id | ) |
|
|
static |
static u8* format_decap_next |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vxlan_header_with_length |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_vxlan_name |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
u8* format_vxlan_tunnel |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
VNET_DEVICE_CLASS |
( |
vxlan_device_class |
, |
|
|
static |
|
|
) |
| |
VNET_HW_INTERFACE_CLASS |
( |
vxlan_hw_class |
| ) |
|
Initial value:= {
.path = "create vxlan tunnel",
.short_help =
"create vxlan tunnel src <local-vtep-addr> dst <remote-vtep-addr> vni <nn>"
" [encap-vrf-id <nn>] [decap-next [l2|ip4|ip6] [del]\n",
}
static clib_error_t * vxlan_add_del_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (create_vxlan_tunnel_command)
Definition at line 543 of file vxlan.c.
Initial value:= {
.path = "show vxlan tunnel",
}
static clib_error_t * show_vxlan_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (show_vxlan_tunnel_command)
Definition at line 570 of file vxlan.c.