FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
ip46_cli.c File Reference

Set IP Address. More...

+ Include dependency graph for ip46_cli.c:

Go to the source code of this file.

Functions

int ip4_address_compare (ip4_address_t *a1, ip4_address_t *a2)
 
int ip6_address_compare (ip6_address_t *a1, ip6_address_t *a2)
 
void ip_del_all_interface_addresses (vlib_main_t *vm, u32 sw_if_index)
 
static clib_error_tip_address_delete_cleanup (vnet_main_t *vnm, u32 hw_if_index, u32 is_create)
 
 VNET_HW_INTERFACE_ADD_DEL_FUNCTION (ip_address_delete_cleanup)
 
static clib_error_tadd_del_ip_address (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_reassembly_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tip4_cli_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t set_interface_ip_command
 (constructor) VLIB_CLI_COMMAND (set_interface_ip_command) More...
 
static vlib_cli_command_t set_interface_ip_address_command
 (constructor) VLIB_CLI_COMMAND (set_interface_ip_address_command) More...
 
static vlib_cli_command_t set_reassembly_command
 (constructor) VLIB_CLI_COMMAND (set_reassembly_command) More...
 

Detailed Description

Set IP Address.

Configure an IPv4 or IPv6 address for on an interface.

Definition in file ip46_cli.c.

Function Documentation

static clib_error_t* add_del_ip_address ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 146 of file ip46_cli.c.

+ Here is the call graph for this function:

int ip4_address_compare ( ip4_address_t a1,
ip4_address_t a2 
)

Definition at line 53 of file ip46_cli.c.

+ Here is the caller graph for this function:

static clib_error_t* ip4_cli_init ( vlib_main_t vm)
static

Definition at line 307 of file ip46_cli.c.

+ Here is the caller graph for this function:

int ip6_address_compare ( ip6_address_t a1,
ip6_address_t a2 
)

Definition at line 60 of file ip46_cli.c.

+ Here is the caller graph for this function:

static clib_error_t* ip_address_delete_cleanup ( vnet_main_t vnm,
u32  hw_if_index,
u32  is_create 
)
static

Definition at line 129 of file ip46_cli.c.

+ Here is the call graph for this function:

void ip_del_all_interface_addresses ( vlib_main_t vm,
u32  sw_if_index 
)

Definition at line 82 of file ip46_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* set_reassembly_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 224 of file ip46_cli.c.

+ Here is the call graph for this function:

VNET_HW_INTERFACE_ADD_DEL_FUNCTION ( ip_address_delete_cleanup  )

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t set_interface_ip_address_command
static
Initial value:
= {
.path = "set interface ip address",
.function = add_del_ip_address,
.short_help = "set interface ip address [del] <interface> <ip-addr>/<mask> | [all]",
}
static clib_error_t * add_del_ip_address(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip46_cli.c:146

(constructor) VLIB_CLI_COMMAND (set_interface_ip_address_command)

Definition at line 216 of file ip46_cli.c.

vlib_cli_command_t set_interface_ip_command
static
Initial value:
= {
.path = "set interface ip",
.short_help = "IP4/IP6 commands",
}

(constructor) VLIB_CLI_COMMAND (set_interface_ip_command)

Definition at line 75 of file ip46_cli.c.

vlib_cli_command_t set_reassembly_command
static
Initial value:
= {
.path = "set interface reassembly",
.short_help = "set interface reassembly <interface-name> [on|off|ip4|ip6]",
}
static clib_error_t * set_reassembly_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip46_cli.c:224

(constructor) VLIB_CLI_COMMAND (set_reassembly_command)

Definition at line 298 of file ip46_cli.c.