38 adj->rewrite_header.sw_if_index = sw_if_index;
44 adj->rewrite_header.sw_if_index,
48 sizeof (adj->rewrite_data));
void adj_lock(adj_index_t adj_index)
An adjacency is a representation of an attached L3 peer.
adj_index_t adj_rewrite_add_and_lock(fib_protocol_t nh_proto, vnet_link_t link_type, u32 sw_if_index, u8 *rewrite)
adj_rewrite_add_and_lock
void vnet_rewrite_for_sw_interface(vnet_main_t *vnm, vnet_link_t link_type, u32 sw_if_index, u32 node_index, void *dst_address, vnet_rewrite_header_t *rw, u32 max_rewrite_bytes)
Deprecated.
union ip_adjacency_t_::@175 sub_type
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
vnet_main_t * vnet_get_main(void)
static adj_index_t adj_get_index(ip_adjacency_t *adj)
Get a pointer to an adjacency object from its index.
struct ip_adjacency_t_::@175::@176 nbr
IP_LOOKUP_NEXT_ARP/IP_LOOKUP_NEXT_REWRITE.
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)
ip_lookup_next_t lookup_next_index
ip_adjacency_t * adj_alloc(fib_protocol_t proto)
This packet is to be rewritten and forwarded to the next processing node.