|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
32 ip46_address_t next_hop, *next_hops;
68 else if (
unformat (line_input,
"next-hop %U",
124 .path =
"ip virtual",
125 .short_help =
"ip virtual <addr> <interface> [mac <Mi>]+ [next-hop <ip4_address>]+",
u32 frp_fib_index
The FIB index to lookup the nexthop Only valid for recursive paths.
uword unformat_ethernet_address(unformat_input_t *input, va_list *args)
#define clib_memcpy(d, s, n)
u8 frp_weight
[un]equal cost path weight
#define clib_error_return(e, args...)
ip46_address_t frp_addr
The next-hop address.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u32 frp_sw_if_index
The interface.
dpo_proto_t frp_proto
The protocol of the address below.
fib_mpls_label_t * frp_label_stack
The outgoing MPLS label Stack.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
vnet_main_t * vnet_get_main(void)
adj_index_t adj_nbr_add_or_lock_w_rewrite(fib_protocol_t nh_proto, vnet_link_t link_type, const ip46_address_t *nh_addr, u32 sw_if_index, u8 *rewrite)
Add (and lock) a new or lock an existing neighbour adjacency.
sll srl srl sll sra u16x4 i
static vlib_cli_command_t virtual_ip_cmd_fn_command
(constructor) VLIB_CLI_COMMAND (virtual_ip_cmd_fn_command)
#define VLIB_CLI_COMMAND(x,...)
vl_api_mac_address_t mac_addr
#define vec_free(V)
Free vector's memory (no header).
fib_node_index_t fib_table_entry_path_add2(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source, fib_entry_flag_t flags, fib_route_path_t *rpaths)
Add n paths to an entry (aka route) in the FIB.
unformat_function_t unformat_vnet_sw_interface
A representation of a path as described by a route producer.
@ FIB_SOURCE_CLI
From the CLI.
vl_api_interface_index_t sw_if_index
static clib_error_t * virtual_ip_cmd_fn_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Aggregate type for a prefix.