FD.io VPP  v18.01.2-1-g9b554f3
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_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...
 

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 144 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 51 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 223 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 58 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 127 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 80 of file ip46_cli.c.

+ Here is the call graph for this function:

+ Here is the caller 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:144

(constructor) VLIB_CLI_COMMAND (set_interface_ip_address_command)

Definition at line 214 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 73 of file ip46_cli.c.