FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
adj_glean.c File Reference
+ Include dependency graph for adj_glean.c:

Go to the source code of this file.

Functions

static vlib_node_registration_tadj_get_glean_node (fib_protocol_t proto)
 
adj_index_t adj_glean_add_or_lock (fib_protocol_t proto, u32 sw_if_index, const ip46_address_t *nh_addr)
 Glean Adjacency. More...
 
void adj_glean_remove (fib_protocol_t proto, u32 sw_if_index)
 
static clib_error_tadj_glean_interface_state_change (vnet_main_t *vnm, u32 sw_if_index, u32 flags)
 
 VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION (adj_glean_interface_state_change)
 
static clib_error_tadj_glean_interface_delete (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (adj_glean_interface_delete)
 
u8format_adj_glean (u8 *s, va_list *ap)
 Format/display a glean adjacency. More...
 
static void adj_dpo_lock (dpo_id_t *dpo)
 
static void adj_dpo_unlock (dpo_id_t *dpo)
 
void adj_glean_module_init (void)
 Module initialisation. More...
 

Variables

static adj_index_tadj_gleans [FIB_PROTOCOL_MAX]
 
static const dpo_vft_t adj_glean_dpo_vft
 
static const char *const glean_ip4_nodes []
 The per-protocol VLIB graph nodes that are assigned to a glean object. More...
 
static const char *const glean_ip6_nodes []
 
static const char *const *const glean_nodes [DPO_PROTO_NUM]
 

Function Documentation

static void adj_dpo_lock ( dpo_id_t dpo)
static

Definition at line 201 of file adj_glean.c.

+ Here is the call graph for this function:

static void adj_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 206 of file adj_glean.c.

+ Here is the call graph for this function:

static vlib_node_registration_t* adj_get_glean_node ( fib_protocol_t  proto)
inlinestatic

Definition at line 28 of file adj_glean.c.

+ Here is the caller graph for this function:

adj_index_t adj_glean_add_or_lock ( fib_protocol_t  proto,
u32  sw_if_index,
const ip46_address_t *  nh_addr 
)

Glean Adjacency.

A gleean adjacency represent the need to discover new peers on an attached link. Packets that hit a glean adjacency will generate an ARP/ND packet addessesed to the packet's destination address. Note this is different to an incomplete neighbour adjacency, which does not send ARP/ND requests to the packet's destination address, but instead to the next-hop address of the adjacency itself.

Add (and lock) a new or lock an existing glean adjacency

Parameters
protoThe protocol for the neighbours that we wish to glean
sw_if_indexThe interface on which to glean
nh_addrthe address applied to the interface on which to glean. This as the source address in packets when the ARP/ND packet is sent

Definition at line 50 of file adj_glean.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* adj_glean_interface_delete ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_add 
)
static

Definition at line 135 of file adj_glean.c.

+ Here is the call graph for this function:

static clib_error_t* adj_glean_interface_state_change ( vnet_main_t vnm,
u32  sw_if_index,
u32  flags 
)
static

Definition at line 101 of file adj_glean.c.

+ Here is the call graph for this function:

void adj_glean_module_init ( void  )

Module initialisation.

Definition at line 243 of file adj_glean.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void adj_glean_remove ( fib_protocol_t  proto,
u32  sw_if_index 
)

Definition at line 92 of file adj_glean.c.

+ Here is the caller graph for this function:

u8* format_adj_glean ( u8 s,
va_list *  ap 
)

Format/display a glean adjacency.

Definition at line 184 of file adj_glean.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( adj_glean_interface_delete  )

+ Here is the caller graph for this function:

VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION ( adj_glean_interface_state_change  )

+ Here is the caller graph for this function:

Variable Documentation

const dpo_vft_t adj_glean_dpo_vft
static
Initial value:
= {
.dv_lock = adj_dpo_lock,
.dv_unlock = adj_dpo_unlock,
.dv_format = format_adj_glean,
}
static void adj_dpo_unlock(dpo_id_t *dpo)
Definition: adj_glean.c:206
static void adj_dpo_lock(dpo_id_t *dpo)
Definition: adj_glean.c:201
u8 * format_adj_glean(u8 *s, va_list *ap)
Format/display a glean adjacency.
Definition: adj_glean.c:184

Definition at line 211 of file adj_glean.c.

adj_index_t* adj_gleans[FIB_PROTOCOL_MAX]
static

Definition at line 25 of file adj_glean.c.

const char* const glean_ip4_nodes[]
static
Initial value:
=
{
"ip4-glean",
}
#define NULL
Definition: clib.h:55

The per-protocol VLIB graph nodes that are assigned to a glean object.

this means that these graph nodes are ones from which a glean is the parent object in the DPO-graph.

Definition at line 224 of file adj_glean.c.

const char* const glean_ip6_nodes[]
static
Initial value:
=
{
"ip6-glean",
}
#define NULL
Definition: clib.h:55

Definition at line 229 of file adj_glean.c.

const char* const* const glean_nodes[DPO_PROTO_NUM]
static
Initial value:
=
{
}
#define NULL
Definition: clib.h:55
static const char *const glean_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a glean object.
Definition: adj_glean.c:224
static const char *const glean_ip6_nodes[]
Definition: adj_glean.c:229

Definition at line 235 of file adj_glean.c.