FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
ip_interface.c File Reference

IP prefix management on interfaces. More...

+ Include dependency graph for ip_interface.c:

Go to the source code of this file.

Functions

u32 ip_interface_address_find (ip_lookup_main_t *lm, void *addr_fib, u32 address_length)
 
clib_error_tip_interface_address_add (ip_lookup_main_t *lm, u32 sw_if_index, void *addr_fib, u32 address_length, u32 *result_if_address_index)
 
clib_error_tip_interface_address_del (ip_lookup_main_t *lm, vnet_main_t *vnm, u32 address_index, void *addr_fib, u32 address_length, u32 sw_if_index)
 
u8 ip_interface_has_address (u32 sw_if_index, ip46_address_t *ip, u8 is_ip4)
 
void * ip_interface_get_first_ip (u32 sw_if_index, u8 is_ip4)
 
static walk_rc_t ip_interface_address_mark_one_interface (vnet_main_t *vnm, vnet_sw_interface_t *si, void *ctx)
 
void ip_interface_address_mark (void)
 
static walk_rc_t ip_interface_address_sweep_one_interface (vnet_main_t *vnm, vnet_sw_interface_t *si, void *ctx)
 
void ip_interface_address_sweep (void)
 

Detailed Description

IP prefix management on interfaces.

Definition in file ip_interface.c.

Function Documentation

◆ ip_interface_address_add()

clib_error_t* ip_interface_address_add ( ip_lookup_main_t lm,
u32  sw_if_index,
void *  addr_fib,
u32  address_length,
u32 result_if_address_index 
)

Definition at line 36 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_address_del()

clib_error_t* ip_interface_address_del ( ip_lookup_main_t lm,
vnet_main_t vnm,
u32  address_index,
void *  addr_fib,
u32  address_length,
u32  sw_if_index 
)

Definition at line 94 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_address_find()

u32 ip_interface_address_find ( ip_lookup_main_t lm,
void *  addr_fib,
u32  address_length 
)

Definition at line 24 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_address_mark()

void ip_interface_address_mark ( void  )

Definition at line 229 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_address_mark_one_interface()

static walk_rc_t ip_interface_address_mark_one_interface ( vnet_main_t vnm,
vnet_sw_interface_t si,
void *  ctx 
)
static

Definition at line 207 of file ip_interface.c.

+ Here is the caller graph for this function:

◆ ip_interface_address_sweep()

void ip_interface_address_sweep ( void  )

Definition at line 289 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_address_sweep_one_interface()

static walk_rc_t ip_interface_address_sweep_one_interface ( vnet_main_t vnm,
vnet_sw_interface_t si,
void *  ctx 
)
static

Definition at line 236 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_get_first_ip()

void* ip_interface_get_first_ip ( u32  sw_if_index,
u8  is_ip4 
)

Definition at line 174 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_interface_has_address()

u8 ip_interface_has_address ( u32  sw_if_index,
ip46_address_t *  ip,
u8  is_ip4 
)

Definition at line 140 of file ip_interface.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: