Go to the source code of this file.
|
static u32 | adj_get_mcast_node (fib_protocol_t proto) |
|
adj_index_t | adj_mcast_add_or_lock (fib_protocol_t proto, vnet_link_t link_type, u32 sw_if_index) |
| Mcast Adjacency. More...
|
|
void | adj_mcast_update_rewrite (adj_index_t adj_index, u8 *rewrite) |
| adj_mcast_update_rewrite More...
|
|
void | adj_mcast_remove (fib_protocol_t proto, u32 sw_if_index) |
|
static clib_error_t * | adj_mcast_interface_state_change (vnet_main_t *vnm, u32 sw_if_index, u32 flags) |
|
| VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION (adj_mcast_interface_state_change) |
|
static void | adj_nbr_hw_sw_interface_state_change (vnet_main_t *vnm, u32 sw_if_index, void *arg) |
| Invoked on each SW interface of a HW interface when the HW interface state changes. More...
|
|
static clib_error_t * | adj_mcast_hw_interface_state_change (vnet_main_t *vnm, u32 hw_if_index, u32 flags) |
| Registered callback for HW interface state changes. More...
|
|
| VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION (adj_mcast_hw_interface_state_change) |
|
static clib_error_t * | adj_mcast_interface_delete (vnet_main_t *vnm, u32 sw_if_index, u32 is_add) |
|
| VNET_SW_INTERFACE_ADD_DEL_FUNCTION (adj_mcast_interface_delete) |
|
u8 * | format_adj_mcast (u8 *s, va_list *ap) |
| Format/display a mcast adjacency. More...
|
|
static void | adj_dpo_lock (dpo_id_t *dpo) |
|
static void | adj_dpo_unlock (dpo_id_t *dpo) |
|
u32 | adj_mcast_db_size (void) |
| Return the size of the adj DB. More...
|
|
void | adj_mcast_module_init (void) |
| Module initialisation. More...
|
|
static void adj_dpo_lock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
static void adj_dpo_unlock |
( |
dpo_id_t * |
dpo | ) |
|
|
static |
Mcast Adjacency.
The multicast adjacency forwards IP traffic on an interface toward a multicast group address. This is a different type of adjacency to a unicast adjacency since the application of the MAC header is different, and so the VLIB node visited is also different. DPO types have different VLIB nodes.
Add (and lock) a new or lock an existing mcast adjacency
- Parameters
-
proto | The protocol for the neighbours that we wish to mcast |
link_type | A description of the protocol of the packets that will forward through this adj. On an ethernet interface this is the MAC header's ether-type |
sw_if_index | The interface on which to mcast |
Definition at line 51 of file adj_mcast.c.
u32 adj_mcast_db_size |
( |
void |
| ) |
|
Return the size of the adj DB.
Get the sze of the mcast adj DB.
This is only for testing purposes so an efficient implementation is not needed
Definition at line 318 of file adj_mcast.c.
Registered callback for HW interface state changes.
Definition at line 182 of file adj_mcast.c.
void adj_mcast_module_init |
( |
void |
| ) |
|
void adj_mcast_update_rewrite |
( |
adj_index_t |
adj_index, |
|
|
u8 * |
rewrite |
|
) |
| |
adj_mcast_update_rewrite
Update the rewrite string for an existing adjacecny.
Update the adjacency's rewrite string. A NULL string implies the rewirte is reset (i.e. when ARP/ND etnry is gone). NB: the adj being updated may be handling traffic in the DP.
Definition at line 102 of file adj_mcast.c.
static void adj_nbr_hw_sw_interface_state_change |
( |
vnet_main_t * |
vnm, |
|
|
u32 |
sw_if_index, |
|
|
void * |
arg |
|
) |
| |
|
static |
Invoked on each SW interface of a HW interface when the HW interface state changes.
Definition at line 171 of file adj_mcast.c.
u8* format_adj_mcast |
( |
u8 * |
s, |
|
|
va_list * |
ap |
|
) |
| |
Format/display a mcast adjacency.
Definition at line 255 of file adj_mcast.c.
Initial value:= {
}
static void adj_dpo_lock(dpo_id_t *dpo)
u8 * format_adj_mcast(u8 *s, va_list *ap)
Format/display a mcast adjacency.
static void adj_dpo_unlock(dpo_id_t *dpo)
Definition at line 282 of file adj_mcast.c.
const char* const adj_mcast_ip4_nodes[] |
|
static |
Initial value:
The per-protocol VLIB graph nodes that are assigned to a mcast object.
this means that these graph nodes are ones from which a mcast is the parent object in the DPO-graph.
Definition at line 295 of file adj_mcast.c.
const char* const adj_mcast_ip6_nodes[] |
|
static |
Initial value:=
{
}
static const char *const adj_mcast_ip6_nodes[]
static const char *const adj_mcast_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a mcast object.
Definition at line 306 of file adj_mcast.c.