16 #ifndef __ADJ_INTERNAL_H__ 17 #define __ADJ_INTERNAL_H__ 35 #define ADJ_DBG(_adj, _fmt, _args...) \ 37 clib_warning("adj:[%d:%p]:" _fmt, \ 38 _adj - adj_pool, _adj, \ 42 #define ADJ_DBG(_e, _fmt, _args...) 93 u32 complete_next_index,
105 const ip46_address_t *nh_addr,
u32 adj_dpo_get_urpf(const dpo_id_t *dpo)
ip_adjacency_t * adj_pool
The global adjacnecy pool.
void adj_glean_remove(fib_protocol_t proto, u32 sw_if_index)
vlib_node_registration_t ip6_rewrite_node
(constructor) VLIB_REGISTER_NODE (ip6_rewrite_node)
vlib_node_registration_t adj_nsh_rewrite_node
(constructor) VLIB_REGISTER_NODE (adj_nsh_rewrite_node)
void adj_nbr_update_rewrite_internal(ip_adjacency_t *adj, ip_lookup_next_t adj_next_index, u32 complete_next_index, u32 next_index, u8 *rewrite)
adj_nbr_update_rewrite_internal
ip_lookup_next_t
An adjacency is a representation of an attached L3 peer.
ip_adjacency_t * adj_alloc(fib_protocol_t proto)
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
enum ip_adjacency_flags_t_ adj_flags_t
Flags on an IP adjacency.
void adj_nbr_remove(adj_index_t ai, fib_protocol_t nh_proto, vnet_link_t link_type, const ip46_address_t *nh_addr, u32 sw_if_index)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
static adj_index_t adj_get_index(ip_adjacency_t *adj)
Get a pointer to an adjacency object from its index.
void adj_mcast_remove(fib_protocol_t proto, u32 sw_if_index)
vlib_node_registration_t ip4_rewrite_node
(constructor) VLIB_REGISTER_NODE (ip4_rewrite_node)
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.
static u32 adj_get_rewrite_node(vnet_link_t linkt)
void(* adj_midchain_fixup_t)(vlib_main_t *vm, struct ip_adjacency_t_ *adj, vlib_buffer_t *b0)
A function type for post-rewrite fixups on midchain adjacency.
static vnet_link_t adj_fib_proto_2_nd(fib_protocol_t fp)
void adj_midchain_setup(adj_index_t adj_index, adj_midchain_fixup_t fixup, adj_flags_t flags)
adj_midchain_setup
vlib_node_registration_t adj_l2_rewrite_node
(constructor) VLIB_REGISTER_NODE (adj_l2_rewrite_node)
vlib_node_registration_t mpls_output_node
(constructor) VLIB_REGISTER_NODE (mpls_output_node)