FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ip_neighbor.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip_neighbor_scan_arg_t
 

Macros

#define IP_SCAN_DISABLED   0
 
#define IP_SCAN_V4_NEIGHBORS   (1 << 0)
 
#define IP_SCAN_V6_NEIGHBORS   (1 << 1)
 
#define IP_SCAN_V46_NEIGHBORS   (IP_SCAN_V4_NEIGHBORS | IP_SCAN_V6_NEIGHBORS)
 

Typedefs

typedef enum ip_neighbor_flags_t_ ip_neighbor_flags_t
 

Enumerations

enum  ip_neighbor_flags_t_ { IP_NEIGHBOR_FLAG_NONE = 0, IP_NEIGHBOR_FLAG_STATIC = (1 << 0), IP_NEIGHBOR_FLAG_DYNAMIC = (1 << 1), IP_NEIGHBOR_FLAG_NO_FIB_ENTRY = (1 << 2) }
 

Functions

void ip_neighbor_scan_enable_disable (ip_neighbor_scan_arg_t *arg)
 
u8format_ip_neighbor_flags (u8 *s, va_list *args)
 
int ip_neighbor_add (const ip46_address_t *ip, ip46_type_t type, const mac_address_t *mac, u32 sw_if_index, ip_neighbor_flags_t flags, u32 *stats_index)
 
int ip_neighbor_del (const ip46_address_t *ip, ip46_type_t type, u32 sw_if_index)
 

Macro Definition Documentation

◆ IP_SCAN_DISABLED

#define IP_SCAN_DISABLED   0

Definition at line 21 of file ip_neighbor.h.

◆ IP_SCAN_V46_NEIGHBORS

#define IP_SCAN_V46_NEIGHBORS   (IP_SCAN_V4_NEIGHBORS | IP_SCAN_V6_NEIGHBORS)

Definition at line 24 of file ip_neighbor.h.

◆ IP_SCAN_V4_NEIGHBORS

#define IP_SCAN_V4_NEIGHBORS   (1 << 0)

Definition at line 22 of file ip_neighbor.h.

◆ IP_SCAN_V6_NEIGHBORS

#define IP_SCAN_V6_NEIGHBORS   (1 << 1)

Definition at line 23 of file ip_neighbor.h.

Typedef Documentation

◆ ip_neighbor_flags_t

Enumeration Type Documentation

◆ ip_neighbor_flags_t_

Enumerator
IP_NEIGHBOR_FLAG_NONE 
IP_NEIGHBOR_FLAG_STATIC 
IP_NEIGHBOR_FLAG_DYNAMIC 
IP_NEIGHBOR_FLAG_NO_FIB_ENTRY 

Definition at line 38 of file ip_neighbor.h.

Function Documentation

◆ format_ip_neighbor_flags()

u8* format_ip_neighbor_flags ( u8 s,
va_list *  args 
)

◆ ip_neighbor_add()

int ip_neighbor_add ( const ip46_address_t *  ip,
ip46_type_t  type,
const mac_address_t mac,
u32  sw_if_index,
ip_neighbor_flags_t  flags,
u32 stats_index 
)

Definition at line 51 of file ip_neighbor.c.

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

◆ ip_neighbor_del()

int ip_neighbor_del ( const ip46_address_t *  ip,
ip46_type_t  type,
u32  sw_if_index 
)

Definition at line 94 of file ip_neighbor.c.

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

◆ ip_neighbor_scan_enable_disable()

void ip_neighbor_scan_enable_disable ( ip_neighbor_scan_arg_t arg)

Definition at line 117 of file ip_neighbor.c.

+ Here is the caller graph for this function: