25 #ifndef __ADJ_MCAST_H__ 26 #define __ADJ_MCAST_H__ 91 const void *fixup_data,
void adj_mcast_midchain_update_rewrite(adj_index_t adj_index, adj_midchain_fixup_t fixup, const void *fixup_data, adj_flags_t flags, u8 *rewrite, u8 offset, u32 mask)
Update the rewrite string for an existing adjacecny and Convert the adjacency into a midchain...
void(* adj_midchain_fixup_t)(vlib_main_t *vm, const struct ip_adjacency_t_ *adj, vlib_buffer_t *b0, const void *data)
A function type for post-rewrite fixups on midchain adjacency.
void adj_mcast_module_init(void)
Module initialisation.
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
u8 * format_adj_mcast_midchain(u8 *s, va_list *ap)
vl_api_interface_index_t sw_if_index
adj_index_t adj_mcast_add_or_lock(fib_protocol_t proto, vnet_link_t link_type, u32 sw_if_index)
Mcast Adjacency.
adj_walk_rc_t(* adj_walk_cb_t)(adj_index_t ai, void *ctx)
Call back function when walking adjacencies.
u32 adj_index_t
An index for adjacencies.
enum vnet_link_t_ vnet_link_t
Link Type: A description of the protocol of packets on the link.
enum adj_flags_t_ adj_flags_t
Flags on an IP adjacency.
template key/value backing page structure
void adj_mcast_walk(u32 sw_if_index, fib_protocol_t adj_nh_proto, adj_walk_cb_t cb, void *ctx)
Walk the multicast Adjacencies on a given interface.
void adj_mcast_update_rewrite(adj_index_t adj_index, u8 *rewrite, u8 offset)
Update the rewrite string for an existing adjacecny.
u8 * format_adj_mcast(u8 *s, va_list *ap)
Format/display a mcast adjacency.
u32 adj_mcast_db_size(void)
Get the sze of the mcast adj DB.